File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -329,10 +329,10 @@ exports.cssmini = {
329
329
env : 'prod' ,
330
330
type : 'client' ,
331
331
name : 'optimize-css-assets-webpack-plugin'
332
- }
332
+ } ;
333
333
334
334
exports . case = {
335
335
enable : true ,
336
336
name : 'case-sensitive-paths-webpack-plugin' ,
337
- args :{ }
337
+ args : { }
338
338
} ;
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class WebpackBaseBuilder extends Config {
117
117
const configPlugin = sourcePlugins [ name ] ;
118
118
if ( target [ name ] ) {
119
119
// enable function 优先级高
120
- if ( this . utils . isObject ( configPlugin ) && configPlugin . enable === undefined ) {
120
+ if ( ( this . utils . isObject ( configPlugin ) || Array . isArray ( configPlugin ) ) && configPlugin . enable === undefined ) {
121
121
target [ name ] . enable = true ;
122
122
}
123
123
if ( this . utils . isFunction ( configPlugin . enable ) ) {
You can’t perform that action at this time.
0 commit comments