cristianbote / goober

🥜 goober, a less than 1KB 🎉 css-in-js alternative with a familiar API
https://goober.rocks
MIT License
3.14k stars 119 forks source link

Shave challenge clarification: which file should we be looking at? #560

Open JoshuaKGoldberg opened 1 year ago

JoshuaKGoldberg commented 1 year ago

I love the idea of the "The Great Shave Off". Awesome. ⚡

But - just to be clear, which file should we be comparing? I would intuit dist/goober.modern.js because that's the default . export?

cristianbote commented 1 year ago

Hey @JoshuaKGoldberg!

Appreciate your shoutout! I love it too! 😄 That's a good point and in the past the way I've been referring to it was either file it is fine, and if the shave is spanning across multiple outputs the largest shave would be the one rewarded.

For example if you shave off -4B from .modern.js and -1B from .umd.js you would get $4!

Hope that clarifies it. Do you feel like this short explanation should be there on the page? 🤔

JoshuaKGoldberg commented 1 year ago

Do you feel like this short explanation should be there on the page?

Either on the page or somewhere in the docs would be great!