Skip to content

Commit

Permalink
flatting the cssStrings array before joining
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-g-taboola committed Dec 27, 2022
1 parent d2d41bf commit e8d04f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-plugin-webfonts/src/web-fonts.js
Expand Up @@ -35,7 +35,7 @@ export default async function webFonts(options, reporter) {
}),
);

const css = await merge(cssStrings.join(``));
const css = await merge(cssStrings.flat().join(``));
const filePath = path.join(options.cacheFolder, `webfonts.css`);
await fs.outputFile(filePath, css);
}

0 comments on commit e8d04f9

Please sign in to comment.