Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.html only updated with scripts if it contains body-tag #19426

Closed
1 of 15 tasks
NillDk opened this issue Nov 18, 2020 · 1 comment · Fixed by #19437
Closed
1 of 15 tasks

index.html only updated with scripts if it contains body-tag #19426

NillDk opened this issue Nov 18, 2020 · 1 comment · Fixed by #19437

Comments

@NillDk
Copy link

NillDk commented Nov 18, 2020

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

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


Angular CLI: 11.0.1
Node: 12.18.0
OS: win32 x64

Angular: 11.0.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.1
@angular-devkit/build-angular   0.1100.1
@angular-devkit/core            11.0.1
@angular-devkit/schematics      11.0.1
@angular/cli                    11.0.1
@schematics/angular             11.0.1
@schematics/update              0.1100.1
rxjs                            6.6.3
typescript                      4.0.5

Anything else relevant?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants