-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pug not detected per default with Nuxt3 #266
Labels
bug
Something isn't working
Comments
After time I think it this bug could be a feature, not supporting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Check windicss/nuxt-windicss#144
When using pug class syntax in Nuxt3 with nuxt-windicss, WindiCSS doesn't not add the CSS classes.
For example
the following
p(class="text-red-600") My Text
works fine and displays a red textBut the following
p.text-red-600 My Text
does not.Versions
Additonal Context
The problem comes from
getDefaultExtractors
invite-plugin-windicss/packages/plugin-utils/src/extractors/helper.ts
Nuxt uses dist/index.mjs from @windicss/plugin-utils and require('pug') line 17 fails (it calls __require which doesn't work). So the Pug extractor is not added. One solution currently is to add the extractor manually in the WindiCSS config.
The text was updated successfully, but these errors were encountered: