Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ const buildSimpleIconsSvgFontFile = async (style) => {
}

const svgFontTemplate = await fs.readFile(SVG_TEMPLATE_FILE, UTF8);
const svgFileContent = util.format(svgFontTemplate, style, glyphsContent);
const svgFileContent = util.format(
svgFontTemplate,
style === REGULAR_STYLE_NAME ? '' : ` ${style}`, // font id
style, // font style
glyphsContent,
);
const svgFilename = `${OUTPUT_FILE_NAME}${getStyleSuffix(style)}${SVG_EXTENSION_NAME}`;
await fs.writeFile(path.join(DIST_DIR, svgFilename), svgFileContent);
console.log(`'${svgFilename}' file built`);
Expand Down
2 changes: 1 addition & 1 deletion scripts/templates/font.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.