We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In version 0.47.1, .scss files use @forward or @use to import other scss files, and @apply in imported files is invalid
.scss
@forward
@use
@apply
// main.ts import index.scss
// index.scss @forward './a.scss'; .foo { // this @apply is work @apply bg-red-500; }
// a.scss .bar { // this @apply is invalid @apply bg-red-600 text-white; }
The text was updated successfully, but these errors were encountered:
Probably because of #1923
Could you try with that:
transformers: [ transformerDirectives({ enforce: 'default' }), ],
If you are using Nuxt you may need to disable cssnano's mergeRules optimization as shown here.
Sorry, something went wrong.
Probably because of #1923 Could you try with that: transformers: [ transformerDirectives({ enforce: 'default' }), ], If you are using Nuxt you may need to disable cssnano's mergeRules optimization as shown here.
Oh thanks. It's working! But I'm not sure that's the best solution.
enforce: 'pre'
mergeRules
Successfully merging a pull request may close this issue.
In version 0.47.1,
.scss
files use@forward
or@use
to import other scss files, and@apply
in imported files is invalidThe text was updated successfully, but these errors were encountered: