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: added a new setup with webpack to fix the tailwind situation #2

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

Conversation

echosonusharma
Copy link

Fix: Tailwind CSS Optimization

Description

The current tailwind.css file includes the entire Tailwind library, resulting in a file size of nearly 3.50MB. To optimize this, a webpack setup has been added that generates a styles.css file in the build folder, containing only the Tailwind classes actually used in the extension. This reduces the production build size from 3.90MB to just 112KB (uncompressed).

Changes Made

  • No changes were made to the existing code.
  • Added a webpack configuration for generating optimized production and development builds, which ends up fixing the tailwind situation.

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