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
I was looking at what gets published to NPM, and seems that their build script takes input from src and output to optimize, then copying the result to top-level directories and releasing that.
I agree we should do that. I originally created this repo as a proof of concept for module usage, but I haven't followed up on this. A pull request would be appreciated and merged.
I was looking at what gets published to NPM, and seems that their build script takes input from
src
and output tooptimize
, then copying the result to top-level directories and releasing that.https://github.com/tailwindlabs/heroicons/blob/eee05eb77af6cdedfb97f128d1998773fc984b28/package.json#L17-L19
In my project I changed the mount point to use the optimized version of the icons:
Among other benefits, this allows for easier control of icon size using CSS. Example:
The text was updated successfully, but these errors were encountered: