Skip to content

Commit 4d2f4ec

Browse files
committed
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
1 parent 1d0d90e commit 4d2f4ec

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
277277
to: output.replace(/^\//, ''),
278278
from: glob,
279279
noErrorOnMissing: true,
280+
force: true,
280281
globOptions: {
281282
dot: true,
282283
ignore: [

0 commit comments

Comments
 (0)