Closed znck closed 5 years ago
@znck See https://github.com/vuejs/component-compiler-utils/pull/30#issuecomment-432853890
plugins
is always []
at beginning and your fix will not work.
Now trim
and scoped
plugins are added at the start of the plugins list, before any user defined plugins. Just to be sure, I'll add a test so it won't break.
There is no user defined plugins
at all when using vue-loader
because .scss
files are handled by sass-loader
and postcss-loader
then it will be transformed into pure .css
and no postcss
plugins will be passed into compileStyle
function.
You can check https://github.com/vuejs/vue-loader/blob/master/lib/loaders/pitcher.js#L92-L105 and https://github.com/vuejs/vue-loader/blob/master/lib/loaders/stylePostLoader.js
/cc @yyx990803
@znck is there something holding up a release of this fix?
I am waiting for @yyx990803's take on this.
fixes #30