-
Notifications
You must be signed in to change notification settings - Fork 11.9k
AOT Build on Hybrid Application does not include html into the main.bundle #6742
Copy link
Copy link
Closed
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussioneffort2: medium (days)featureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issueshelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fix
Metadata
Metadata
Assignees
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussioneffort2: medium (days)featureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issueshelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fix
Bug Report or Feature Request (mark with an
x)Versions.
@angular/cli: 1.1.1
node: 8.1.1
os: darwin x64
Repro steps.
this.upgrade.bootstrap(document.body, [ng1module.name], {strictDi: true});./login.htmlng build --prodwill now not include the login.html to the main.bundle.js, (--aot false, works)The log given by the failure.
404
Desired functionality.
it should also include AngularJS 1.X html templates into the main.bundle.js (I mean it works without aot..)
Mention any other details that might be useful.
Well it might be helpful but our application layout is kinda special, we imported all of our AngularJS application into the Folder:
src/old/and our components might be in any folder there, i.e. everything like that is valid:
sadly without
--aotour main.bundle and vendor.bundle are way to big (3mb-4mb together).Edit: Strange thing is that with
--aotenabled it will actually havetemplateUrl, while without in development/production it will produce:template: e("WZfy"),and the function correctly for every template.