Adopt more breaking changes from copy-webpack-plugin

This commit is contained in:
Alexandru Dima 2020-12-17 13:05:14 +01:00
parent 2aa92c6e83
commit 804c90cc49
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -70,9 +70,11 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
devtool: 'source-map',
plugins: [
// @ts-expect-error
new CopyWebpackPlugin([
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]),
new CopyWebpackPlugin({
patterns: [
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]
}),
new NLSBundlePlugin(id)
],
};
@ -127,9 +129,11 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) {
devtool: 'source-map',
plugins: [
// @ts-expect-error
new CopyWebpackPlugin([
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]),
new CopyWebpackPlugin({
patterns: [
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]
}),
new DefinePlugin({ WEBWORKER: JSON.stringify(true) })
]
};