LinbuduLab / esbuild-plugins

ESBuild plugins by @LinbuduLab
MIT License
113 stars 18 forks source link

Add size limit option for esbuild-plugin-filesize #55

Closed mochaaP closed 2 years ago

mochaaP commented 2 years ago

Adding a size limit option, familiar to size-limit, can make this plugin an alternative to it with better esbuild integration.

Thanks for your excellent work on this!

linbudu599 commented 2 years ago

Thanks for your suggestions! I will refine it this weekend.

linbudu599 commented 2 years ago

Hi, I've checked the size-limit plugin and think a size-limit option to throw warnings is indeed useful, but I'm not sure where and how to put it on. Shall we add a size-limit for only origin output size? Or provide unique one for every compressed size itself?