aurelia / cli

The Aurelia 1 command line tool. Use the CLI to create projects, scaffold components, and bundle your app for release.
MIT License
407 stars 133 forks source link

Updating CopyWebpackPlugin (> 6.0.0) breaking changes #1185

Closed ivanbacher closed 4 years ago

ivanbacher commented 4 years ago

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: ['.*'] } }
      ]
    }))