From a5ade152a811a48fec6af2b0a003757f7c36707b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 28 Sep 2020 06:54:59 +0200 Subject: [PATCH] npm: Upgrade webpack related development dependencies compression-webpack-plugin fixes https://www.npmjs.com/advisories/1548 Adjust to new copy-webpack-plugin API. Thew new modules now create dist/index.html.gz in `NODE_ENV=production` mode, so switch `WEBPACK_TEST` to index.css instead (which remains uncompressed in both modes). --- Makefile | 2 +- package.json | 12 ++++++------ webpack.config.js | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e81978a..813e9d6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ VM_IMAGE=$(CURDIR)/test/images/$(TEST_OS) # stamp file to check if/when npm install ran NODE_MODULES_TEST=package-lock.json # one example file in dist/ from webpack to check if that already ran -WEBPACK_TEST=dist/index.html +WEBPACK_TEST=dist/index.css all: $(WEBPACK_TEST) diff --git a/package.json b/package.json index ccb987c..3188d64 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ "babel-eslint": "^10.0.3", "babel-loader": "^8.0.6", "chrome-remote-interface": "^0.28.0", - "compression-webpack-plugin": "^3.0.0", - "copy-webpack-plugin": "^5.0.3", - "css-loader": "^3.0.0", + "compression-webpack-plugin": "^6.0.0", + "copy-webpack-plugin": "^6.1.0", + "css-loader": "^4.3.0", "eslint": "^6.3.0", "eslint-config-standard": "^14.1.0", "eslint-config-standard-react": "^9.2.0", @@ -35,13 +35,13 @@ "eslint-plugin-standard": "^4.0.1", "htmlparser": "^1.7.7", "jed": "^1.1.1", - "mini-css-extract-plugin": "^0.9.0", + "mini-css-extract-plugin": "^0.11.0", "node-sass": "^4.14.1", "po2json": "^1.0.0-alpha", "qunit": "^2.9.3", - "sass-loader": "^8.0.2", + "sass-loader": "^10.0.2", "sizzle": "^2.3.3", - "stdio": "^0.2.7", + "stdio": "^2.1.0", "string-replace-loader": "^2.3.0", "webpack": "^4.35.3", "webpack-cli": "^3.3.5" diff --git a/webpack.config.js b/webpack.config.js index 9929619..a0d9904 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -78,7 +78,7 @@ info.files.forEach(function(value) { info.files = files; var plugins = [ - new copy(info.files), + new copy({ patterns: info.files }), new extract({filename: "[name].css"}) ];