From 55bda51030df0899362dbd7e302d17ddc4b14569 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Sun, 14 Feb 2021 15:02:23 -0700 Subject: [PATCH] update CopyPlugin usage --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f21cf69..7061c15 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -116,7 +116,7 @@ const productionPlugins = [ let plugins = (env, argv) => [ new webpack.HotModuleReplacementPlugin(), - new CopyPlugin([{ from: 'data', to: 'data' }, { from: 'wand.js', to: 'wand.js' }]), + new CopyPlugin({ patterns: [{ from: 'data', to: 'data' }, { from: 'wand.js', to: 'wand.js' }] }), new HtmlWebpackPlugin({ hash: true, inject: true,