USWDS - Feature: ability to trim down css size #5210
Labels
Affects: Performance
Relates to the speed, size, or efficiency of our code
Context: Sass
Issue is in Sass
Needs: Discussion
We need to discuss an approach to this issue
Role: Dev
Development/engineering skills needed
Type: Feature Request
New functionality
Is your feature request related to a problem? Please describe.
Large CSS libraries such as tailwind have tree shaking capabilities such that you do not have to send the CSS for classes which you do not use in production. (https://tailwindcss.com/docs/optimizing-for-production) This can cut down dramatically on the network bandwidth.
At present when I use USWDS in my SASS, the css file weighs in at about 400kb uncompressed. This seems very large. My project is certainly not leveraging 400kb worth of styles.
Love the design system and y'alls mission, but is there any way to get this lower?
Thanks
Describe the solution you'd like
Some documentation or added capabilities for a production build of USWDS that is more network bandwidth conscious.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: