@@ -29,11 +29,11 @@ exports.getWebpackConfig = ({ target }) => {
2929 const isExtracting = webpackConfig . plugins . has ( 'extract-css' )
3030 if ( isExtracting ) {
3131 // 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 )
3737 rule . uses . delete ( 'extract-css-loader' )
3838 // Critical CSS
3939 rule . use ( 'css-context' ) . loader ( CssContextLoader ) . before ( 'css-loader' )
@@ -75,21 +75,21 @@ exports.getWebpackConfig = ({ target }) => {
7575 webpackConfig = mergeWebpack ( webpackConfig , {
7676 plugins : [
7777 new VueSSRClientPlugin ( ) ,
78- ... ( isProd ? [ new WebpackBar ( {
78+ new WebpackBar ( {
7979 name : 'Client' ,
8080 color : 'green' ,
81- } ) ] : [ ] ) ,
81+ } ) ,
8282 ] ,
8383 devtool : ! isProd ? '#cheap-module-source-map' : undefined ,
8484 } )
8585 } else {
8686 webpackConfig = mergeWebpack ( webpackConfig , {
8787 plugins : [
8888 new VueSSRServerPlugin ( ) ,
89- ... ( ! isProd ? [ new WebpackBar ( {
89+ new WebpackBar ( {
9090 name : 'Server' ,
9191 color : 'orange' ,
92- } ) ] : [ ] ) ,
92+ } ) ,
9393 ] ,
9494 externals : nodeExternals ( {
9595 whitelist : config . nodeExternalsWhitelist ,
0 commit comments