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).
This commit is contained in:
parent
e4dc9d7118
commit
a5ade152a8
3 changed files with 8 additions and 8 deletions
2
Makefile
2
Makefile
|
|
@ -11,7 +11,7 @@ VM_IMAGE=$(CURDIR)/test/images/$(TEST_OS)
|
||||||
# stamp file to check if/when npm install ran
|
# stamp file to check if/when npm install ran
|
||||||
NODE_MODULES_TEST=package-lock.json
|
NODE_MODULES_TEST=package-lock.json
|
||||||
# one example file in dist/ from webpack to check if that already ran
|
# 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)
|
all: $(WEBPACK_TEST)
|
||||||
|
|
||||||
|
|
|
||||||
12
package.json
12
package.json
|
|
@ -19,9 +19,9 @@
|
||||||
"babel-eslint": "^10.0.3",
|
"babel-eslint": "^10.0.3",
|
||||||
"babel-loader": "^8.0.6",
|
"babel-loader": "^8.0.6",
|
||||||
"chrome-remote-interface": "^0.28.0",
|
"chrome-remote-interface": "^0.28.0",
|
||||||
"compression-webpack-plugin": "^3.0.0",
|
"compression-webpack-plugin": "^6.0.0",
|
||||||
"copy-webpack-plugin": "^5.0.3",
|
"copy-webpack-plugin": "^6.1.0",
|
||||||
"css-loader": "^3.0.0",
|
"css-loader": "^4.3.0",
|
||||||
"eslint": "^6.3.0",
|
"eslint": "^6.3.0",
|
||||||
"eslint-config-standard": "^14.1.0",
|
"eslint-config-standard": "^14.1.0",
|
||||||
"eslint-config-standard-react": "^9.2.0",
|
"eslint-config-standard-react": "^9.2.0",
|
||||||
|
|
@ -35,13 +35,13 @@
|
||||||
"eslint-plugin-standard": "^4.0.1",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"htmlparser": "^1.7.7",
|
"htmlparser": "^1.7.7",
|
||||||
"jed": "^1.1.1",
|
"jed": "^1.1.1",
|
||||||
"mini-css-extract-plugin": "^0.9.0",
|
"mini-css-extract-plugin": "^0.11.0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
"po2json": "^1.0.0-alpha",
|
"po2json": "^1.0.0-alpha",
|
||||||
"qunit": "^2.9.3",
|
"qunit": "^2.9.3",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^10.0.2",
|
||||||
"sizzle": "^2.3.3",
|
"sizzle": "^2.3.3",
|
||||||
"stdio": "^0.2.7",
|
"stdio": "^2.1.0",
|
||||||
"string-replace-loader": "^2.3.0",
|
"string-replace-loader": "^2.3.0",
|
||||||
"webpack": "^4.35.3",
|
"webpack": "^4.35.3",
|
||||||
"webpack-cli": "^3.3.5"
|
"webpack-cli": "^3.3.5"
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ info.files.forEach(function(value) {
|
||||||
info.files = files;
|
info.files = files;
|
||||||
|
|
||||||
var plugins = [
|
var plugins = [
|
||||||
new copy(info.files),
|
new copy({ patterns: info.files }),
|
||||||
new extract({filename: "[name].css"})
|
new extract({filename: "[name].css"})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue