index.html only updated with scripts if it contains body-tag #19426
Labels
area: @angular-devkit/build-angular
devkit/build-angular:browser
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, it works in Angular 10.
It doesn't work in Angular 11.
Description
We use Angular in conjunction with ASP.NET.
In our situation we want to add script-tags to a so-called partial view - a html-file not containing html- or body-tags.
This worked for us in Angular 10.
However, in Angular 11 the /dist/index.html is not updated with script-tags.
🔬 Minimal Reproduction
Create project: ng new angular11
Modify index.html to have blank content. Or at least not a body-tag.
Build: npm run build
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: