Skip to content

Commit

Permalink
webpack --colors option is now by default (#122)
Browse files Browse the repository at this point in the history
* Update package.json

* Update package.json

change webpack -> $(yarn bin webpack)

* Update package.json

* Update webpack.config.js

OccurrenceOrderPlugin is default in v5
  • Loading branch information
gcattan authored Jun 1, 2023
1 parent 1bd4af0 commit 8097700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"test": "npm run lint && jest",
"test-watch": "jest --watch",
"clean": "rimraf dist",
"build:minified": "cross-env NODE_ENV=production MINIFY=true webpack --progress --colors",
"build:unminified": "cross-env NODE_ENV=production webpack --progress --colors",
"build:minified": "cross-env NODE_ENV=production MINIFY=true $(yarn bin webpack) --progress",
"build:unminified": "cross-env NODE_ENV=production $(yarn bin webpack) --progress",
"build": "npm run build:minified && npm run build:unminified",
"prepublish": "npm run clean && npm run lint && npm run test && npm run build",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
Expand Down Expand Up @@ -72,7 +72,7 @@
"rimraf": "^5.0.1",
"semantic-release": "^21.0.2",
"typescript": "^4.3.3",
"webpack": "^4.29.6",
"webpack": "^5.85.0",
"webpack-cli": "^4.10.0"
},
"peerDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ module.exports = {
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(env)
}),
new webpack.optimize.OccurrenceOrderPlugin()
})
],
};

0 comments on commit 8097700

Please sign in to comment.