We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aec8da commit 3df0c65Copy full SHA for 3df0c65
2 files changed
scripts/build.js
@@ -137,7 +137,12 @@ const buildSimpleIconsSvgFontFile = async (style) => {
137
}
138
139
const svgFontTemplate = await fs.readFile(SVG_TEMPLATE_FILE, UTF8);
140
- const svgFileContent = util.format(svgFontTemplate, style, glyphsContent);
+ const svgFileContent = util.format(
141
+ svgFontTemplate,
142
+ style === REGULAR_STYLE_NAME ? '' : ` ${style}`, // font id
143
+ style, // font style
144
+ glyphsContent,
145
+ );
146
const svgFilename = `${OUTPUT_FILE_NAME}${getStyleSuffix(style)}${SVG_EXTENSION_NAME}`;
147
await fs.writeFile(path.join(DIST_DIR, svgFilename), svgFileContent);
148
console.log(`'${svgFilename}' file built`);
scripts/templates/font.svg
0 commit comments