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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
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