Skip to content

Commit

Permalink
fix: excludeFormat exclude svg (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
amini-amr authored Nov 20, 2024
1 parent 9eeeb3c commit b3b1d10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ export default async (options: SvgToFontOptions = {}) => {
if (excludeFormat.includes('ttf')) {
fs.removeSync(ttfPath);
}
const svgPath = path.join(options.dist, options.fontName + ".svg");
if (excludeFormat.includes('svg')) {
fs.removeSync(svgPath)
}

if (options.css) {
const styleTemplatePath = options.styleTemplates || path.resolve(__dirname, 'styles')
Expand Down

0 comments on commit b3b1d10

Please sign in to comment.