vuejs / vue-style-loader

đź’… vue style loader module for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

TechAkayy opened this issue · comments

commented

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: #42

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.