diff options
author | Ajay Ramachandran <[email protected]> | 2020-08-27 21:27:43 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-08-27 21:27:43 -0400 |
commit | 03a1af813e38cf73bd982435eb9bfcb89fa03e79 (patch) | |
tree | 7ac045aa6960b0c0f76a1289cd132aff17f65714 /webpack | |
parent | 9636fd72de37769fe6d16797d69cb33b944e26d2 (diff) | |
download | SponsorBlock-03a1af813e38cf73bd982435eb9bfcb89fa03e79.tar.gz SponsorBlock-03a1af813e38cf73bd982435eb9bfcb89fa03e79.zip |
Add back copy plugin changes
Diffstat (limited to 'webpack')
-rw-r--r-- | webpack/webpack.common.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 99dbac35..79fea60b 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -35,11 +35,18 @@ module.exports = env => ({ }, plugins: [ // exclude locale files in moment - new CopyPlugin([ - { from: '.', to: '../', ignore: ['manifest.json'] } - ], - {context: 'public' } - ), + new CopyPlugin({ + patterns: [ + { + from: '.', + to: '../', + globOptions: { + ignore: ['manifest.json'], + }, + context: './public', + } + ] + }), new BuildManifest({ browser: env.browser, pretty: env.mode === "production", |