From 1b2ab07c095c9f5f7dd5e58261c2809ae479161a Mon Sep 17 00:00:00 2001 From: exqt <8168124+exqt@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:17:41 +0900 Subject: [PATCH] fix: woff2 export path --- src/models/project.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/project.ts b/src/models/project.ts index 75e062d..bb444a3 100644 --- a/src/models/project.ts +++ b/src/models/project.ts @@ -231,7 +231,7 @@ class Project { return file; } else if (type == 'woff2') { - await woff2.init('/fonts/woff2.wasm'); + await woff2.init('fonts/woff2.wasm'); let b = font.write({ type: 'woff2' }); const file = new File([b], this.attr.name + ".woff2", { type: 'font/woff2' }); return file;