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

Vue with TSX/JSX #15

Open
secretlifeof opened this issue Feb 25, 2021 · 1 comment
Open

Vue with TSX/JSX #15

secretlifeof opened this issue Feb 25, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@secretlifeof
Copy link

secretlifeof commented Feb 25, 2021

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"

@hannoeru
Copy link
Member

Currently we only support Vue SFC.

@hannoeru hannoeru added the enhancement New feature or request label Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants