From b8fa6f123b6a4816cfb30836dec100dc7b13a15e Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Sun, 19 Jul 2020 00:36:35 +0200 Subject: [PATCH] Fixed issue with webpack production configuration. --- webpack.prod.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/webpack.prod.js b/webpack.prod.js index 93ce22f6..9586939a 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -33,11 +33,13 @@ module.exports = merge(common, { ignoreOrder: true, filename: "[name].[contenthash].css", }), - new CopyWebpackPlugin([ - { - from: path.resolve(__dirname, "assets"), - to: path.resolve(__dirname, "dist/assets"), - }, - ]), + new CopyWebpackPlugin({ + patterns: [ + { + from: path.resolve(__dirname, "assets"), + to: path.resolve(__dirname, "dist/assets"), + }, + ], + }), ], });