diff --git a/_config.ts b/_config.ts index 72ae2f23..ffcf62bd 100644 --- a/_config.ts +++ b/_config.ts @@ -355,8 +355,7 @@ site.addEventListener("afterBuild", async () => { const match = SCRIPT_SRC_RE.exec(content); if (!match) continue; - const srcDir = path.dirname(f.path).replace(/^dist\//, "src/"); - const jsPath = path.join(srcDir, match[1]); + const jsPath = path.join("src", match[1]); try { const newContent = htmlWithInlineJs({ content, jsPath, match: match[0] }); diff --git a/src/index.vto b/src/index.vto index 6f30c296..44897e68 100644 --- a/src/index.vto +++ b/src/index.vto @@ -8,7 +8,6 @@ styles: - vendor/@phosphor-icons/fill/style.css scripts: - - index.js - common/pages/version-upgrade.js # LINKS