-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[dashboard] Optimize build #3830
Conversation
0a48905
to
b34686c
Compare
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.13 |
Also, we could use the new "Just In Time" mode from |
I would prefer to delay that for a different PR. We only need to add |
2db110a
to
8df0b49
Compare
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.16 |
Build is failing :-( I'm curious to see that in action. If there are no differences, that'd be awesome! UPDATE:
OK |
From the build output I cannot see how this impacts the size of the css chunk.
Looks similar to previous state. OTHO I ❤️ the eslint running on the code! |
8df0b49
to
aaad340
Compare
Yes, that what craco enables https://purgecss.com/guides/react.html#use-craco |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.18 |
I though it would not be enabled, because of the missing params. Let me check again... @aledbf, I double-checked, it's not applied automatically. It's currently transferring ~620KB gzipped, while the original size is still ~8megs.
We need to provide a template path like |
My fault. When I rebased against main I forgot the purge configuration in |
Awesome! The number of transferred kilobyte dropped to ~8 🎉 Just quickly scanned what might break according to the docs, i.e. concatenation of class names. But it appears to works 🤷🏻♂️, at least the https://github.com/gitpod-io/gitpod/blob/main/components/dashboard/src/Login.tsx#L27 |
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.
Thanks @aledbf! I like the changes!
See another nit regarding the eslint versions.
d963d13
to
9f7bb81
Compare
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.21 |
9f7bb81
to
e88ec89
Compare
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.23 |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.24 |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.25 |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.26 |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.27 |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.28 |
/werft run 👍 started the job as gitpod-build-aledbf-dashboard.29 |
Changes:
react-scripts
tocraco
https://tailwindcss.com/docs/guides/create-react-apppostcss
(craco)Screenshot of network differences (main.*.chunk.css): -450Kb