FundRing / fundring

This is a community fund for the Filecoin ecosystem that allows participants to contribute to projects they're interested in.
MIT License
5 stars 0 forks source link

Decrease fund-ring-widget.js file size #4

Open avivash opened 1 year ago

avivash commented 1 year ago

Summary

I haven't explored this in depth yet and it may be tricky given the amount of libraries and styles used in the component, but I want to experiment with some things in the vite.widget.config.ts to reduce the bundle size.

Update: it looks like the css imported into the widget from tailwind/daisy is increasing the bundle size by almost 70%, so stripping those out and just using raw CSS may be a good first step

Motivation

Smaller file size is better 🤷🏼

avivash commented 10 months ago

I'm going to keep this issue open for now because I think it would be good to address this at some point, so we have a template to use if we want to apply this same approach to another one of our projects at some point