Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): override already existing assets …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
alan-agius4 committed Oct 15, 2020
1 parent 1d0d90e commit 4d2f4ec
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -277,6 +277,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
to: output.replace(/^\//, ''),
from: glob,
noErrorOnMissing: true,
force: true,
globOptions: {
dot: true,
ignore: [
Expand Down

0 comments on commit 4d2f4ec

Please sign in to comment.