Skip to content
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

fix: build tailwind instead of using CDN #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

milhamm
Copy link

@milhamm milhamm commented Dec 22, 2023

Previously, we are using TailwindCSS from unpkg which is a CDN that will load all of the possible TailwindCSS into a single css file. This approach is not optimal since we load unnecessary class names to our client.

This MR change the approach to instead build the tailwind classes using their CLI.

Before:

2.9 MB resources
Screenshot 2023-12-22 at 14 50 44

After:

16.2 kB resources
Screenshot 2023-12-22 at 14 50 14

@milhamm
Copy link
Author

milhamm commented Dec 22, 2023

Updated using PostCSS @riipandi @rubiagatra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant