From 781256c86f9e8664d71478220776f68c01a92a72 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 3 May 2021 11:42:18 +0000 Subject: [PATCH 1/2] fix(deps): update dependency copy-webpack-plugin to v8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbb2e0a32..04590699e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "babel-loader": "8.2.2", "bootstrap": "4.6.0", "classnames": "2.3.1", - "copy-webpack-plugin": "6.4.1", + "copy-webpack-plugin": "8.1.1", "css-loader": "5.2.4", "datepicker": "git+https://github.com/liqd/datePicker.git", "file-loader": "6.2.0", From 9608703b61883ec9bb0b8f8d87fcaf834a2d74be Mon Sep 17 00:00:00 2001 From: phillimorland Date: Mon, 3 May 2021 14:39:28 +0200 Subject: [PATCH 2/2] webpack.common: update copy webpack schema --- webpack.common.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 1be8e2fa1..736278f92 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -219,18 +219,15 @@ module.exports = { new CopyWebpackPlugin({ patterns: [{ from: './euth_wagtail/assets/images/*', - to: 'images/', - flatten: true + to: 'images/[name][ext]' }, { from: './euth_wagtail/assets/icons/*', - to: 'icons/', - flatten: true + to: 'icons/[name][ext]' }, { from: './euth_wagtail/assets/category_icons/**/*', - to: 'category_icons/icons/', - flatten: true + to: 'category_icons/icons/[name][ext]' }] }) ]