From f2a11ba1deecb44cf9944eafddd2aabf9f888aee Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 29 Jun 2020 22:16:55 +0200 Subject: [PATCH] npm: Bump development dependencies Closes #334 --- package.json | 15 ++++++++------- webpack.config.js | 10 +++++++--- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 17d3709..10b4645 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,10 @@ "@babel/preset-env": "^7.5.4", "@babel/preset-react": "^7.0.0", "babel-eslint": "^10.0.3", - "babel-loader": "^8.0.0", + "babel-loader": "^8.0.6", "chrome-remote-interface": "^0.28.0", - "compression-webpack-plugin": "^1.1.11", - "copy-webpack-plugin": "^4.5.2", + "compression-webpack-plugin": "^3.0.0", + "copy-webpack-plugin": "^5.0.3", "css-loader": "^3.0.0", "eslint": "^6.3.0", "eslint-config-standard": "^14.1.0", @@ -30,7 +30,7 @@ "eslint-plugin-import": "^2.18.2", "eslint-plugin-node": "^10.0.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-react": "^7.14.3", + "eslint-plugin-react": "^7.16.0", "eslint-plugin-react-hooks": "^2.1.2", "eslint-plugin-standard": "^4.0.1", "htmlparser": "^1.7.7", @@ -38,12 +38,13 @@ "mini-css-extract-plugin": "^0.9.0", "node-sass": "^4.14.1", "po2json": "^1.0.0-alpha", - "sass-loader": "^7.0.3", + "qunit": "^2.9.3", + "sass-loader": "^8.0.2", "sizzle": "^2.3.3", "stdio": "^0.2.7", "string-replace-loader": "^2.3.0", - "webpack": "^4.17.1", - "webpack-cli": "^3.1.0" + "webpack": "^4.35.3", + "webpack-cli": "^3.3.5" }, "dependencies": { "@patternfly/patternfly": "2.71.7", diff --git a/webpack.config.js b/webpack.config.js index dccce9d..2b2f3e3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -88,13 +88,13 @@ if (production) { output.filename = "[name].min.js"; plugins.unshift(new CompressionPlugin({ - asset: "[path].gz[query]", test: /\.(js|html)$/, minRatio: 0.9, deleteOriginalAssets: true })); } +/* keep this in sync with cockpit.git */ var babel_loader = { loader: "babel-loader", options: { @@ -165,8 +165,10 @@ module.exports = { { loader: 'sass-loader', options: { + sassOptions: { + outputStyle: 'compressed', + }, sourceMap: true, - outputStyle: 'compressed', }, }, ] @@ -186,8 +188,10 @@ module.exports = { { loader: 'sass-loader', options: { + sassOptions: { + outputStyle: 'compressed', + }, sourceMap: true, - outputStyle: 'compressed', }, }, ]