-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Is there a way to support "@use" from sass? #304
Comments
Same issue here, switched to this plugin solved the problem. |
How can I specify it? Edit: Do you mean stop using rollup-plugin-postcss and using roll-up-plugin-scss instead? |
yes. |
Thanks for your reply. But how can I bundle styles in js with roll-up-plugin-scss? I did not find a way to do it. I saw your issue in vuejs/rollup-plugin-vue#410 Do you find out a way to output one js file with vue using scss? |
I couldn't find a way to inject css into js. |
I know sass is currently using dart-sass which supports "@use": https://sass-lang.com/documentation/at-rules/use
Here is my rollup configuration:
But if I use this in the
scss
fileI got
(plugin postcss) Error: Invalid CSS after " height: vars": expected expression (e.g. 1px, bold), was ".$size-base;"
It does work perfectly using
@import
but it will be deprecatedThe text was updated successfully, but these errors were encountered: