Skip to content

Commit

Permalink
fix: Fix #117
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 17, 2021
1 parent 365f4a5 commit 2b2d8cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default async (options: SvgToFontOptions = {}) => {
tempData._IconHtml = symbolHtml.join('');
tempData._type = 'symbol';
const symbolHtmlStr = await createHTML(options.website.template, tempData);
fs.outputFileSync(symbolPath, unicodeHtmlStr);
fs.outputFileSync(symbolPath, symbolHtmlStr);
console.log(`${color.green('SUCCESS')} Created ${unicodePath} `);
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ttf2woff from 'ttf2woff';
import ttf2woff2 from 'ttf2woff2';
import copy from 'copy-template-dir';
import del from 'del';
import { moveFile } from 'move-file';
import moveFile from 'move-file';
import { SvgToFontOptions } from './';

let UnicodeObj: Record<string, string> = {};
Expand Down

0 comments on commit 2b2d8cd

Please sign in to comment.