Skip to content

Commit 8e1513d

Browse files
authored
Merge pull request #20 from nextgensparx/fix-webpack-copy
Make CopyWebpackPlugin pattern an array
2 parents 5c63d34 + cf5ce2c commit 8e1513d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = (api, options) => {
6666
}
6767
}
6868

69-
webpackConfig.plugins.push(new CopyWebpackPlugin({
69+
webpackConfig.plugins.push(new CopyWebpackPlugin([{
7070
from: './src/manifest.json',
7171
to: 'manifest.json',
7272
transform: (content) => {
@@ -103,7 +103,7 @@ module.exports = (api, options) => {
103103
}
104104
})
105105
}
106-
}))
106+
}]))
107107

108108
if (isProduction) {
109109
webpackConfig.plugins.push(new ZipPlugin({

0 commit comments

Comments
 (0)