angular/angular-cli

Changes to index.html no longer work with esbuild

Criban opened this issue · 1 comments

Command

build, serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

After switching to the builder @angular-devkit/build-angular:application, changes to the index.html are no longer synchronized.

Same problem with the builder @angular-devkit/build-angular:browser-esbuild

Minimal Reproduction

  1. generate new angular project with ng new
  2. run ng serve and open http://localhost:4200
  3. change something in the index.html
  4. refresh the browser -> changes do not appear

Exception or Error

No response

Your Environment

Angular CLI: 17.3.6
Node: 20.11.1
Package Manager: npm 10.2.4
OS: win32 x64

Angular: 17.3.6
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.6
@angular-devkit/build-angular   17.3.6
@angular-devkit/core            17.3.6
@angular-devkit/schematics      17.3.6
@schematics/angular             17.3.6
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.4

Anything else relevant?

No response