mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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) {
|
||||
if (this.extractCSS && !this.isServer) {
|
||||
if (this.extractCSS) {
|
||||
loaders.unshift(MiniCssExtractPlugin.loader)
|
||||
if (this.dev) {
|
||||
// css-hot-loader
|
||||
|
Loading…
Reference in New Issue
Block a user