From 4d2f4ec2c1e7d3d5b319bb920512ad72be28b24b Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 15 Oct 2020 16:18:36 +0200 Subject: [PATCH] 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 --- .../angular_devkit/build_angular/src/webpack/configs/common.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index f4d2d03567..905488765e 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -277,6 +277,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { to: output.replace(/^\//, ''), from: glob, noErrorOnMissing: true, + force: true, globOptions: { dot: true, ignore: [