Open
Description
🐞 Bug report
Command
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
I don't know for sure, but I don't think so.
Description
The CLI currently allows to modify the output path of the index.html
file. This works fine. Unfortunately it only modifies the output path and doesn't modify the file paths which are used inside the index.html
file to reference the JavaScript files.
🔬 Minimal Reproduction
- create a new project
npx @angular/cli new my-project
- modify the
angular.json
atprojects > my-project > architect > build > index
"index": {
"input": "src/index.html",
"output": "subdirectory/index.html"
}
- run
ng build
- inspect the file located at
dist/my-project/subdirectory/index.html
- it references the JavaScript files as if they would be in the same folder
🔥 Exception or Error
It doesn't throw an error.
🌍 Your Environment
Angular CLI: 8.3.18
Node: 12.13.0
OS: darwin x64
Angular: 8.2.13
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.18
@angular-devkit/build-angular 0.803.18
@angular-devkit/build-optimizer 0.803.18
@angular-devkit/build-webpack 0.803.18
@angular-devkit/core 8.3.18
@angular-devkit/schematics 8.3.18
@angular/cli 8.3.18
@ngtools/webpack 8.3.18
@schematics/angular 8.3.18
@schematics/update 0.803.18
rxjs 6.4.0
typescript 3.5.3
webpack 4.39.2
Anything else relevant?
I'm happy to provide a pull request for this if you agree that this is a bug.