Fix matching multiple css imports

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-04-07 10:28:58 -07:00
parent 5fd1793abe
commit f6887d4b39

View File

@ -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);
}