Skip to content

Commit afe5581

Browse files
authored
docs: update example code of Limitations (#180)
1 parent 1062b06 commit afe5581

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const productionConfig = { ... };
4444

4545
const 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

0 commit comments

Comments
 (0)