update CopyPlugin usage

This commit is contained in:
notgne2 2021-02-14 15:02:23 -07:00
parent fcd5f4688b
commit 55bda51030
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -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,