Skip to content

fix: build tailwind instead of using CDN - #3

Open
milhamm wants to merge 5 commits into
zero-one-group:mainfrom
milhamm:fix/tailwind-build
Open

fix: build tailwind instead of using CDN#3
milhamm wants to merge 5 commits into
zero-one-group:mainfrom
milhamm:fix/tailwind-build

Conversation

@milhamm

@milhamm milhamm commented Dec 22, 2023

Copy link
Copy Markdown

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

milhamm commented Dec 22, 2023

Copy link
Copy Markdown
Author

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