From e8d04f94ac868cd2e73a4e23c0c6efcb790317d0 Mon Sep 17 00:00:00 2001 From: Yuri Goikhman Date: Mon, 26 Dec 2022 22:48:03 -0800 Subject: [PATCH] flatting the cssStrings array before joining --- gatsby-plugin-webfonts/src/web-fonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-plugin-webfonts/src/web-fonts.js b/gatsby-plugin-webfonts/src/web-fonts.js index 0fb9272..1ee746c 100644 --- a/gatsby-plugin-webfonts/src/web-fonts.js +++ b/gatsby-plugin-webfonts/src/web-fonts.js @@ -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); }