mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 12:32:42 +00:00
Dependency updates
This commit is contained in:
@@ -45,7 +45,7 @@ function markdown (mode, input, data, hbs) {
|
||||
.replace(/<!--\[[\s\S]*?\]-->/g, '')
|
||||
.replace(/æææ[\s\S]*?æææ/gi, '')
|
||||
.replace(/\{!\{([\s\S]*?)\}!\}/mg, ''),
|
||||
).trim();
|
||||
).result.trim();
|
||||
if (input.length > 1000) input = input.slice(0, 1000) + '…';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -72,7 +72,7 @@ class ClientScript extends File {
|
||||
let contents = await Promise.map(files, readFile);
|
||||
contents = contents.join('\n\n');
|
||||
if (prod) {
|
||||
const { code, error } = minify(contents, { output: { comments: false } });
|
||||
const { code, error } = await minify(contents, { output: { comments: false } });
|
||||
if (error) throw new Error(error);
|
||||
contents = code;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user