-
-
Notifications
You must be signed in to change notification settings - Fork 184
fix(admin ui): remove build warnings and reduce bundle size #2237
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
base: master
Are you sure you want to change the base?
Conversation
|
How dows this relate #2177 ? |
|
The title says "Webpack - remove build warnings and better performance". If #2177 removes webpack then is this still relevant? |
The key question: Will PR #2177 (Vite migration) eliminate the warnings that my PR #2237 fixes? Answer: Partially, but not completely. Here's the breakdown:
I would recommend you do PR #2177 first and than I rebase and adjust this PR. |
Sounds fine to me if you make improvement to Vite too after PR #2177 EDIT: I made personal test build including all these changes to PR #2177 codes and all fine. I don't want to take your credits to PR #2177, so best to split this update to two part
|
|
Done and PR title and text adjusted. |
|
Something must have been gone wrong during the rebase. I will look into it tomorrow. |
5ede87d to
6d49ac2
Compare
|
Commit history is much more clean now, sorry for the delay. |
NOTEThis PR is not needed when PR #2267 merged. |
Use math.div() instead of / operator for division to fix Dart Sass 2.0 deprecation warnings.
Replace font-awesome package with @fortawesome/fontawesome-free v4-shims for backwards compatibility with FA4 class names. Saves ~78KB.
Replace lodash isUndefined with native === undefined check. Removes 531KB lodash bundle from the build.
Use deep imports (@fortawesome/free-solid-svg-icons/faIcon) instead of barrel imports to enable tree-shaking. Reduces FA5 icons from 1012KB to 17KB.
6d49ac2 to
d7e676e
Compare
bkeepers
left a comment
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.
Looks. good. Looking forward to seeing those build warnings go away!
Summary
/division tomath.div()and fromdarken()tocolor.adjust()Changes
SCSS modernization:
/division operator withsass:math.div()in_grid.scss,_card.scss,_sidebar.scss,_layout.scss,_rtl.scssdarken()function withsass:color.adjust()in_card.scssBundle size optimization: