@@ -29,11 +29,11 @@ exports.getWebpackConfig = ({ target }) => {
29
29
const isExtracting = webpackConfig . plugins . has ( 'extract-css' )
30
30
if ( isExtracting ) {
31
31
// Remove extract
32
- const langs = [ 'css' , 'postcss' , 'scss' , 'sass' , 'less' , 'stylus' ]
33
- const types = [ 'vue-modules' , 'vue' , 'normal-modules' , 'normal' ]
34
- for ( const lang of langs ) {
35
- for ( const type of types ) {
36
- const rule = webpackConfig . module . rule ( lang ) . oneOf ( type )
32
+ const langs = [ 'css' , 'postcss' , 'scss' , 'sass' , 'less' , 'stylus' ]
33
+ const types = [ 'vue-modules' , 'vue' , 'normal-modules' , 'normal' ]
34
+ for ( const lang of langs ) {
35
+ for ( const type of types ) {
36
+ const rule = webpackConfig . module . rule ( lang ) . oneOf ( type )
37
37
rule . uses . delete ( 'extract-css-loader' )
38
38
// Critical CSS
39
39
rule . use ( 'css-context' ) . loader ( CssContextLoader ) . before ( 'css-loader' )
@@ -75,21 +75,21 @@ exports.getWebpackConfig = ({ target }) => {
75
75
webpackConfig = mergeWebpack ( webpackConfig , {
76
76
plugins : [
77
77
new VueSSRClientPlugin ( ) ,
78
- ... ( isProd ? [ new WebpackBar ( {
78
+ new WebpackBar ( {
79
79
name : 'Client' ,
80
80
color : 'green' ,
81
- } ) ] : [ ] ) ,
81
+ } ) ,
82
82
] ,
83
83
devtool : ! isProd ? '#cheap-module-source-map' : undefined ,
84
84
} )
85
85
} else {
86
86
webpackConfig = mergeWebpack ( webpackConfig , {
87
87
plugins : [
88
88
new VueSSRServerPlugin ( ) ,
89
- ... ( ! isProd ? [ new WebpackBar ( {
89
+ new WebpackBar ( {
90
90
name : 'Server' ,
91
91
color : 'orange' ,
92
- } ) ] : [ ] ) ,
92
+ } ) ,
93
93
] ,
94
94
externals : nodeExternals ( {
95
95
whitelist : config . nodeExternalsWhitelist ,
0 commit comments