image optimization

This commit is contained in:
Soph :3 2024-08-30 03:51:53 +03:00
parent 47ac0b329c
commit 7b04c35c94
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
7 changed files with 85 additions and 18 deletions

View file

@ -5,7 +5,7 @@ export default class CompileTimeJS extends Plugin {
rewriteTriggers = ["html", "*"]
longLasting = false;
build = undefined;
async rewriteFile(file: string, filePath: string): Promise<string> {
let input = file;
const regex = /{&(.+)&}/gms;