vue-component-compiler icon indicating copy to clipboard operation
vue-component-compiler copied to clipboard

Order of postcss modules when provided other postcss plugins

Open lancetharper opened this issue 5 years ago • 2 comments

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.

lancetharper avatar Mar 06 '19 16:03 lancetharper

Any progress?

ztamizzen avatar Apr 03 '19 09:04 ztamizzen

@ztamizzen No response yet. I assume they've been busy with the recent Vue Conference.

The change itself would be pretty small/simple so once we get some guidance here the fix (if any) would be quick and easy.

lancetharper avatar Apr 10 '19 19:04 lancetharper