From cf5ce2caf139aad4e037e9133164b23566cfe168 Mon Sep 17 00:00:00 2001 From: nextgensparx Date: Tue, 28 Aug 2018 11:11:58 +0200 Subject: [PATCH] Make CopyWebpackPlugin pattern an array Fixes regression caused by PR #14 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 608ec9e..85e2918 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ module.exports = (api, options) => { } } - webpackConfig.plugins.push(new CopyWebpackPlugin({ + webpackConfig.plugins.push(new CopyWebpackPlugin([{ from: './src/manifest.json', to: 'manifest.json', transform: (content) => { @@ -102,7 +102,7 @@ module.exports = (api, options) => { } }) } - })) + }])) if (isProduction) { webpackConfig.plugins.push(new ZipPlugin({