We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These font files currently cannot be subsetted by this tool
fa-sharp-thin-100
fa-duotone-regular-400
fa-duotone-light-300
fa-duotone-thin-100
fa-sharp-duotone-solid-900
fa-sharp-duotone-regular-400
fa-sharp-duotone-light-300
fa-sharp-duotone-thin-100
import { fontawesomeSubset } from "fontawesome-subset" import { rmSync } from "fs" const outDir = "./fontsdir" rmSync(outDir, { recursive: true, force: true }) fontawesomeSubset( { "sharp-thin": ["cog"], "duotone-regular": ["cog"], "duotone-light": ["cog"], "duotone-thin": ["cog"], "sharp-duotone-solid": ["cog"], "sharp-duotone-regular": ["cog"], "sharp-duotone-light": ["cog"], "sharp-duotone-thin": ["cog"], }, outDir, { package: "pro", targetFormats: ["woff2"] } ) .then((success) => console.log(success)) .catch((e) => console.error(e))
After running the test script ./fontsdir should have 8 woff2 files
./fontsdir
After running the test script ./fontsdir has zero font files
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
These font files currently cannot be subsetted by this tool
fa-sharp-thin-100
fa-duotone-regular-400
fa-duotone-light-300
fa-duotone-thin-100
fa-sharp-duotone-solid-900
fa-sharp-duotone-regular-400
fa-sharp-duotone-light-300
fa-sharp-duotone-thin-100
Test script
expected result
After running the test script
./fontsdir
should have 8 woff2 filesactual result
After running the test script
./fontsdir
has zero font filesThe text was updated successfully, but these errors were encountered: