Skip to content
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

additionalData support for css preprocessors #520

Closed
sapphi-red opened this issue Jul 6, 2020 · 0 comments · Fixed by vuejs/core#2126
Closed

additionalData support for css preprocessors #520

sapphi-red opened this issue Jul 6, 2020 · 0 comments · Fixed by vuejs/core#2126
Labels
enhancement New feature or request feat: css

Comments

@sapphi-red
Copy link
Member

Is your feature request related to a problem? Please describe.
Writing @import '/src/common.scss' on every .vue file is frustrating.

Describe the solution you'd like
Add a property to prepend scss/less code in vite.config.js just like sass-loader's additionalData.
sass-loader's additionalData options
less-loader's appendData options

Describe alternatives you've considered
I tried to prepend scss code by using transforms options of vite.config.js but the code were already preprocessed.
Adding transforms which can apply before the preprocess maybe better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feat: css
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants