Skip to content

Commit

Permalink
docs: update example code of Limitations (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin-Gong authored Jun 7, 2021
1 parent 1062b06 commit afe5581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const productionConfig = { ... };

const developmentConfig = { ... };

module.exports = env => {
switch(env) {
module.exports = (env, args) => {
switch(args.mode) {
case 'development':
return merge(commonConfig, developmentConfig);
case 'production':
Expand All @@ -56,7 +56,7 @@ module.exports = env => {
}
```

You can choose the configuration you want by using `webpack --env development` assuming you are using _webpack-cli_.
You can choose the configuration you want by using `webpack --mode development` assuming you are using _webpack-cli_.

## **`mergeWithCustomize({ customizeArray, customizeObject })(...configuration | [...configuration])`**

Expand Down

0 comments on commit afe5581

Please sign in to comment.