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 Aug 16, 2022. It is now read-only.
I'm using rollup-plugin-vue and noticed that if I use postcss-import (or any other postcss plugins to use as a replacement for less/sass) that the module'd class names are not added to the $style object for classes that are contained within imported stylesheets.
I believe it is because postcss-modules is prepended and run before my other supplied plugins here. I can confirm that by inverting and concat'ing the postcss modules fixes the issue for me, however I'm curious if there is a deeper reason for prepending it.
You can find my original issue here for reproduction.
I'm happy to put together a PR if no one sees any reason not to do this.
The text was updated successfully, but these errors were encountered:
lancetharper
changed the title
Postcss modules with other postcss plugins
Order of postcss modules when provided other postcss plugins
Mar 6, 2019
I'm using
rollup-plugin-vue
and noticed that if I usepostcss-import
(or any other postcss plugins to use as a replacement for less/sass) that the module'd class names are not added to the $style object for classes that are contained within imported stylesheets.I believe it is because
postcss-modules
is prepended and run before my other supplied plugins here. I can confirm that by inverting and concat'ing the postcss modules fixes the issue for me, however I'm curious if there is a deeper reason for prepending it.You can find my original issue here for reproduction.
I'm happy to put together a PR if no one sees any reason not to do this.
The text was updated successfully, but these errors were encountered: