Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom builds #224

Merged
merged 2 commits into from
Jan 12, 2025
Merged

Conversation

LitoMore
Copy link
Member

@LitoMore LitoMore commented Jan 4, 2025

Resolves #163

Changes

  • Add support for custom builds
  • Use getIconSlug() from simple-icons/sdk

Example

SI_FONT_SLUGS_FILTER=github,simpleicons npm run build
#=> github      \u{EE3B}
#=> simpleicons \u{F3FE}

The SI_FONT_PRESERVE_UNICODES is useful when users want to use only a few icons, and the Unicode doesn't change between version updates.

SI_FONT_SLUGS_FILTER=github,simpleicons SI_FONT_PRESERVE_UNICODES=false npm run build
#=> github      \u{EA01}
#=> simpleicons \u{EA02}

@LitoMore LitoMore requested a review from mondeja January 4, 2025 13:56
@LitoMore LitoMore added the package Pull requests or issues that affect the NPM package label Jan 4, 2025
Co-authored-by: Álvaro Mondéjar Rubio <[email protected]>
@LitoMore LitoMore requested a review from mondeja January 9, 2025 07:44
@mondeja mondeja merged commit d3057a1 into simple-icons:develop Jan 12, 2025
5 checks passed
@LitoMore LitoMore deleted the custom-builds branch January 12, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package Pull requests or issues that affect the NPM package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom builds filtering by icons
2 participants