You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing the following in the tailwind.config.js the general css file size tripples. content: ['./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'],
It looks like this is including all components css even if components arent being used. This means the browser is downloading the entire flowbite library worth of components tailwindcss without needing it.
It would be nice if we could leverage tailwinds class shedding to only include css of components we use, when we use them.
Motivation
Lighthouse is complaining about unused css. The css file size is 150kbs, naturally its 50kbs. Its not a crushing change but it is something to note that is happening and i hope we can look into it at some point.
The text was updated successfully, but these errors were encountered:
Summary
When doing the following in the tailwind.config.js the general css file size tripples.
content: ['./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'],
It looks like this is including all components css even if components arent being used. This means the browser is downloading the entire flowbite library worth of components tailwindcss without needing it.
It would be nice if we could leverage tailwinds class shedding to only include css of components we use, when we use them.
Motivation
Lighthouse is complaining about unused css. The css file size is 150kbs, naturally its 50kbs. Its not a crushing change but it is something to note that is happening and i hope we can look into it at some point.
The text was updated successfully, but these errors were encountered: