fix(@angular-devkit/build-angular): override already existing assets in compilation

With this change we align the copying of assets between `ng build` and `ng serve`. Previously in `ng serve` already copied assets where not overridden.

More info: https://webpack.js.org/plugins/copy-webpack-plugin/#force

Closes #18787
This commit is contained in:
Alan Agius 2020-10-15 16:18:36 +02:00
parent 1d0d90e1b1
commit 4d2f4ec2c1

View File

@ -277,6 +277,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
to: output.replace(/^\//, ''),
from: glob,
noErrorOnMissing: true,
force: true,
globOptions: {
dot: true,
ignore: [