Updating CopyWebpackPlugin (> 6.0.0) breaking changes
ivanbacher opened this issue · comments
When updating CopyWebpackPlugin
v > 6.0.0 the following code as the be changed in webpack.config
FROM
...when(!tests, new CopyWebpackPlugin([
{ from: 'static', to: outDir, ignore: ['.*'] }])), // ignore dot (hidden) files
TO
..when(!tests, new CopyWebpackPlugin({
patterns: [
{ from: 'static', to: outDir, globOptions: { ignore: ['.*'] } }
]
}))