boringdesigners / boring-avatars

Boring avatars is an open source React library that generates custom, SVG-based avatars from any username and color palette.
https://boringavatars.com
MIT License
5.65k stars 198 forks source link

Use vite to build library #78

Closed macklinu closed 2 months ago

macklinu commented 6 months ago

Hello, I was blocked from using this library in Remix (same issue as #76). I wasn't sure how to modify the existing build system to fix the issue, but switching to Vite could be a simpler way to build this library that isn't dependent on all of the create-react-app config. I ran the new build script (vite build) and linked it to a project of mine, and now the Avatar component renders as expected.

Are you open to this as a fix? I'd be happy to swap the demo over to Vite as well and get rid of a bunch of CRA & webpack dependencies to simplify - let me know and I'll open a couple issues.

Thanks!

github-actions[bot] commented 5 months ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

macklinu commented 5 months ago

Not stale

github-actions[bot] commented 4 months ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

macklinu commented 4 months ago

Not stale

corygibbons commented 4 months ago

I could really use this all well.

github-actions[bot] commented 3 months ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.