-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@angular-devkit/build-angular): deprecate scripts and styles `la… #14955
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general. We'll need a migration for this in 9 though.
Unsure of how we should process that work. If we just add it now, it might not run as people update project versions manually. I guess we need a PR for it that we just merge during RC?
packages/angular_devkit/build_angular/test/browser/scripts-array_spec_large.ts
Outdated
Show resolved
Hide resolved
What I had in mind is to add such things as a future migration. Ie, it will already be inside the code and unit tested but it won't run when doing What do you reckon? |
I think that's a pretty good approach. |
Will do the update schematic in a separate PR in the coming days |
Is it important that it's in a separate PR? Having everything in a single PR would generally be better. |
…zy` option in favor of`inject` The lazy option inside the script and style option is confusing as this option doesn't lazy load a bundle but rather it doesn't inject/reference the script in the HTML. While this option is an enabler for lazy loading, the users will still need to handle on how how this bundle will be lazy loaded. There are also potential use cases beyond lazy loading for the option. Closes #14814
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great work!
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…zy
option in favor of
inject`The lazy option inside the script and style option is confusing as this option doesn't lazy load a bundle but rather it doesn't inject/reference the script in the HTML. While this option is an enabler for lazy loading, the users will still need to handle on how how this bundle will be lazy loaded. There are also potential use cases beyond lazy loading for the option.
Closes #14814