-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[angular] Fix vendor and update @angular-builders #13118
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.
@angular-builders
update is recommend per just-jeb/angular-builders#873 (comment)
I converted to draft because adding changes here:
|
Can we always use HMR ? Are there any drawbacks to not always use it for dev? |
So far as I tested it works well. But Angular CLI |
Changes done: * use file name main.ts instead of app.main.ts and move main.ts and polyfills.ts to upper folder * move day.js import from main.ts to app.module.ts
d9a5bd2
to
15bd940
Compare
I updated in third commit also |
We were using angular 10 compile stack indeed.
With this PR:
Thanks @kaidohallik |
Yes @mshima you were totally right about the builder, mybad :) At least now we know what to do for the next update 😄 |
Fixes #13082, follow up to #10624 and #13035
This PR has 2 commits:
vendor.ts
which fixes The order of global and vendor scss files is incorrect in angular.json #13082@angular-builders
versionSome comments:
ng serve --hmr
is working with full HMR, so deleted currentmodule.hot
lines fromapp.main.ts
(which was anyway too simplified and didn't enable full HMR)@angular-builders@11
gives warning: Option "extractCss" is deprecated: Deprecated since version 11.0. No longer required to disable CSS extraction for HMR. then removed"extractCss": true,
fromangular.json
(latest Angular CLI v11 also doesn't generate this line), tested bothdev
andprod
and css working finePlease make sure the below checklist is followed for Pull Requests.
When you are still working on the PR, consider converting it to Draft (bellow reviewers) and adding
skip-ci
label, you can still see CI build result at your branch.