vuejs / vue-style-loader

đź’… vue style loader module for webpack
MIT License
226 stars 68 forks source link

vue-style-loader no more used by vue-loader@next #56

Open TechAkayy opened 3 years ago

TechAkayy commented 3 years ago

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

LongJinCen commented 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

phoenix-ru commented 2 years ago

@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.