From dc42956a369018b083e9b6edd46c43905e38fddf Mon Sep 17 00:00:00 2001 From: Ian Forster Date: Thu, 2 Jan 2020 11:47:22 +0000 Subject: [PATCH 1/2] fix: replaces asset object with filename object --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index dbdefe8..07a1867 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -191,7 +191,7 @@ module.exports = function(opts) { if (gzip) { config.plugins.push( new CompressionPlugin({ - asset: '[path][query]', + filename: '[path][query]', exclude: new RegExp(`\.(${imageFormats})$`, 'i'), minRatio: Infinity }) From 3578d8d243f66b53571596f02b8317ca510d0200 Mon Sep 17 00:00:00 2001 From: Ian Forster Date: Thu, 2 Jan 2020 11:49:02 +0000 Subject: [PATCH 2/2] docs: version bump and changelog for v11.0.1 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 785d744..2e5cc25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 11.0.1 + +## Webpack + +Update to `webpack.config.js` to replace `asset` option with `filename` option. + # 11.0.0 `compression-webpack-plugin` (`v3.0.1`) and `webpack` (`4.41.2`) upgraded to fix vulnerability in `serialize-javascript`. diff --git a/package.json b/package.json index 36eb59d..70aec26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-factory", - "version": "11.0.0", + "version": "11.0.1", "description": "Tools to help create user interfaces with Carbon and React.", "scripts": {}, "author": "The Sage Group plc",