vue-style-loader icon indicating copy to clipboard operation
vue-style-loader copied to clipboard

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

Open TechAkayy opened this issue 4 years ago • 2 comments

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

TechAkayy avatar Jul 20 '21 03:07 TechAkayy

please see [email protected] changlog。vue-style-loader hasn't been not updated for Vue 3 yet. Please use mini-css-extract-plugin for CSS extraction

LongJinCen avatar Aug 10 '21 09:08 LongJinCen

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

phoenix-ru avatar Sep 28 '21 13:09 phoenix-ru