From f6887d4b3939767a6938ebc87bab601e68027538 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Tue, 7 Apr 2020 10:28:58 -0700 Subject: [PATCH] Fix matching multiple css imports --- build/scss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scss.js b/build/scss.js index 226604b..d7419fe 100644 --- a/build/scss.js +++ b/build/scss.js @@ -40,7 +40,7 @@ class Sass extends File { async load (prod) { let contents = (await readFile(this.input).catch(() => null)).toString('utf8'); - for (const [ match, fpath ] of contents.matchAll(/\|(.+?)\|/)) { + for (const [ match, fpath ] of contents.matchAll(/\|(.+?)\|/g)) { const insert = await readFile(fpath); contents = contents.replace(match, insert); }