Open TechAkayy opened 3 years ago
please see vue-loader@v16.0.0-rc.2 changlog。vue-style-loader hasn't been not updated for Vue 3 yet. Please use mini-css-extract-plugin for CSS extraction
@LongJinCen Is there any info about using vue-style-loader for Vue 3 with SSR?
mini-css-extract-plugin works fine for static css, but fails when you need to inline styles or get them from dynamic locations (such as Webpack 5's Module Federated applications).
The only solution I actually found is incredibly hacky and requires lots of adjustments in vue-style-loader
and also writing own loaders.
package.json in vue-loader@next has dropped vue-style-loader and instead has just style-loader.. Is this the end of vue-style-loader? Would be good to get clarity on this to plan ahead.. thanks!
https://github.com/vuejs/vue-loader/blob/next/package.json#L70
Reference of a previously closed related query: https://github.com/vuejs/vue-style-loader/issues/42