mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix(style-loader): add miniCSSExtractPlugin loader for ssr builds
This commit is contained in:
parent
05652d72c8
commit
96bfc40672
@ -81,7 +81,7 @@ export default class StyleLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extract(loaders) {
|
extract(loaders) {
|
||||||
if (this.extractCSS && !this.isServer) {
|
if (this.extractCSS) {
|
||||||
loaders.unshift(MiniCssExtractPlugin.loader)
|
loaders.unshift(MiniCssExtractPlugin.loader)
|
||||||
if (this.dev) {
|
if (this.dev) {
|
||||||
// css-hot-loader
|
// css-hot-loader
|
||||||
|
Loading…
Reference in New Issue
Block a user