File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ const productionConfig = { ... };
44
44
45
45
const developmentConfig = { ... };
46
46
47
- module .exports = env => {
48
- switch (env ) {
47
+ module .exports = ( env , args ) => {
48
+ switch (args . mode ) {
49
49
case ' development' :
50
50
return merge (commonConfig, developmentConfig);
51
51
case ' production' :
@@ -56,7 +56,7 @@ module.exports = env => {
56
56
}
57
57
```
58
58
59
- You can choose the configuration you want by using ` webpack --env development ` assuming you are using _ webpack-cli_ .
59
+ You can choose the configuration you want by using ` webpack --mode development ` assuming you are using _ webpack-cli_ .
60
60
61
61
## ** ` mergeWithCustomize({ customizeArray, customizeObject })(...configuration | [...configuration]) ` **
62
62
You can’t perform that action at this time.
0 commit comments