From 809770014e770cc34ed33c135548e6cd83630f6a Mon Sep 17 00:00:00 2001 From: gcattan Date: Thu, 1 Jun 2023 22:55:16 +0200 Subject: [PATCH] webpack `--colors` option is now by default (#122) * Update package.json * Update package.json change webpack -> $(yarn bin webpack) * Update package.json * Update webpack.config.js OccurrenceOrderPlugin is default in v5 --- package.json | 6 +++--- webpack.config.js | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a8279c3..86982fe 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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": { diff --git a/webpack.config.js b/webpack.config.js index 130fa16..5fee3c5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -54,7 +54,6 @@ module.exports = { plugins: [ new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(env) - }), - new webpack.optimize.OccurrenceOrderPlugin() + }) ], };