-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Inline inline.js #2307
Copy link
Copy link
Closed
Labels
area: @angular-devkit/build-angularfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angularfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a feature request as of beta.15, rest of the issue template elided.
Currently
ng build --prodyields a set of files like so:Upon inspection of the the index.html and inline.js contents, it appears that the contents of inline.js were probably intended, at some point in the design or implementation process, to be inlined inside index.html, saving one HTTP round-trip in the results. Thus, a feature request to inline the inline.
Related to this, a question: it appears the styles could be included in the main bundle - is there a reason they need to be kept separate (costing another HTTP request) in a prod build? If not, please include in main bundle.