You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
For the moment, the rollup-plugin-vue compiles styles in all cases: src/index.ts#L340-L359.
IMHO we should be able to extract styles without compilation to use it for theming or anything else after. I read the plugin code and tried to correctly understand the StyleCompileOptions interface but I didn't found any solution to this need.
In my case, I try to build a library of components which should be themed by a specific context into many applications. But I need to keep my SCSS as it was defined into each component to override default variables correctly.
What does the proposed API look like?
I think setting css:false and at the same time scss:false into style.preprocessOptions should return no compiled styles.
I hope it will help you improve this project.
Xavier
The text was updated successfully, but these errors were encountered:
In my opinion user should be free to use any css preprocessor out there, for example I'm using rollup-plugins-styles that's a very good plugin. Here I added a processStyleTags to make rollup-plugin-vue ignore styles so the css plugin can process them.
If interested I could add documentation and tests and submit a PR.
What problem does this feature solve?
For the moment, the
rollup-plugin-vue
compiles styles in all cases: src/index.ts#L340-L359.IMHO we should be able to extract styles without compilation to use it for theming or anything else after. I read the plugin code and tried to correctly understand the
StyleCompileOptions
interface but I didn't found any solution to this need.In my case, I try to build a library of components which should be themed by a specific context into many applications. But I need to keep my SCSS as it was defined into each component to override default variables correctly.
What does the proposed API look like?
I think setting
css:false
and at the same timescss:false
intostyle.preprocessOptions
should return no compiled styles.I hope it will help you improve this project.
Xavier
The text was updated successfully, but these errors were encountered: