Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Vue with TSX/JSX #15

Open
Open
@secretlifeof

Description

Thanks for taking the time to create this! The documentation is well written and thorough.

I wanted to try Windi with Nuxt/Vue but did not get it working with .tsx files.

Adding this to nuxt.config.js:

extend(config) {
      config.module.rules.push({
        test: /\.tsx$/,
        loader: 'vue-windicss-preprocess',
        options: {
          config: 'tailwind.config.js', 
          compile: false, 
          globalPreflight: true, 
          globalUtility: true, 
          prefix: 'w-',
        },
      })
    },

Is JSX supported?

Versions

"vue-windicss-preprocess": "^2.0.0"

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions