Skip to content

Commit 970c3cc

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 (cherry picked from commit 4d2f4ec)
1 parent a24d445 commit 970c3cc

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
270270
to: output.replace(/^\//, ''),
271271
from: glob,
272272
noErrorOnMissing: true,
273+
force: true,
273274
globOptions: {
274275
dot: true,
275276
ignore: [

0 commit comments

Comments
 (0)