forked from github.com/GenderDysphoria.fyi
Fix matching multiple css imports
This commit is contained in:
@@ -40,7 +40,7 @@ class Sass extends File {
|
|||||||
async load (prod) {
|
async load (prod) {
|
||||||
let contents = (await readFile(this.input).catch(() => null)).toString('utf8');
|
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);
|
const insert = await readFile(fpath);
|
||||||
contents = contents.replace(match, insert);
|
contents = contents.replace(match, insert);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user