This repository was archived by the owner on Jan 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 149
postcss + css modules + imported styles #203
Comments
5 tasks
+1 |
+1 |
+1 me too |
Fixed. To be released soon. |
As far as I can tell, this has not been fixed. The This wasn't a question of how to extract styles like you cover in #208 Some quick debugging on my end leads me to believe that it is because the style imports haven't been done so they are left out of the module object here in I've opened an issue with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Relevant SFC code:
Relevant parts of rollup config:
Classes from
localStyle.pcss
are never applied via the$style
object thus my component has empty classes that should be css-module classes. The css in the output file is all correct (as expected).It's obvious the imported styles are never considered because the styles haven't been processed by postcss.
Also tried:
Having
rollup-plugin-vue
handle the postcss by adding this to the config (wherepostcssConfig
comes from my postcssrc file:but this results in an error
Error: Use process(css).then(cb) to work with async plugins
This has worked fine with
vue-loader
+ webpack.How is this supposed to work for this plugin? I'm exploring rollup as a replacement for webpack to build a component library so this is all fairly new to me. Any help is appreciated!
The text was updated successfully, but these errors were encountered: