Adopt copy-webpack-plugin breaking change

This commit is contained in:
Alexandru Dima
2020-12-17 12:01:07 +01:00
parent 6de06bc8c8
commit 2aa92c6e83

View File

@@ -71,7 +71,7 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
plugins: [
// @ts-expect-error
new CopyWebpackPlugin([
{ from: 'src', to: '.', ignore: ['**/test/**', '*.ts'] }
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]),
new NLSBundlePlugin(id)
],
@@ -128,7 +128,7 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) {
plugins: [
// @ts-expect-error
new CopyWebpackPlugin([
{ from: 'src', to: '.', ignore: ['**/test/**', '*.ts'] }
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]),
new DefinePlugin({ WEBWORKER: JSON.stringify(true) })
]