mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-30 23:06:18 +00:00
Fix matching multiple css imports
This commit is contained in:
parent
5fd1793abe
commit
f6887d4b39
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user