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 = { ... };
4444
4545const developmentConfig = { ... };
4646
47- module .exports = env => {
48- switch (env ) {
47+ module .exports = ( env , args ) => {
48+ switch (args . mode ) {
4949 case ' development' :
5050 return merge (commonConfig, developmentConfig);
5151 case ' production' :
@@ -56,7 +56,7 @@ module.exports = env => {
5656}
5757```
5858
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_ .
6060
6161## ** ` mergeWithCustomize({ customizeArray, customizeObject })(...configuration | [...configuration]) ` **
6262
You can’t perform that action at this time.
0 commit comments