mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
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:
parent
1d0d90e1b1
commit
4d2f4ec2c1
@ -277,6 +277,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
|
|||||||
to: output.replace(/^\//, ''),
|
to: output.replace(/^\//, ''),
|
||||||
from: glob,
|
from: glob,
|
||||||
noErrorOnMissing: true,
|
noErrorOnMissing: true,
|
||||||
|
force: true,
|
||||||
globOptions: {
|
globOptions: {
|
||||||
dot: true,
|
dot: true,
|
||||||
ignore: [
|
ignore: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user