angular-cli
angular-cli copied to clipboard
ng build --prod wraps javascript files in new <app-root>
Versions
Angular CLI: 1.6.3
Node: 8.9.0
OS: win32 x64
Angular: 5.1.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
@angular/cdk: 5.0.2
@angular/cli: 1.6.3
@angular/material: 5.0.2
@angular/service-worker: 5.2.0
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.3
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.4.2
webpack: 3.10.0
Repro steps
- Create a new application using
ng new app - Then, run
ng build --prod
Observed behavior
The index.html file in /dist folder generated after running ng build --prod wraps the scripts tags to the generated js files in a <app-root> tag. Therefore on load everything in <app-root> is replaced by the application. Therefore no javascript files available.
Desired behavior
should not wrap the javascript files in <app-root>
Mention any other details that might be useful (optional)
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.