improve path resolution stability

This commit is contained in:
Jacky Zhao
2023-08-19 16:28:44 -07:00
parent c874e7e937
commit dd47be1bc6
5 changed files with 8 additions and 7 deletions

View File

@ -25,7 +25,7 @@ export function pageResources(slug: FullSlug, staticResources: StaticResources):
css: [joinSegments(baseDir, "index.css"), ...staticResources.css],
js: [
{
src: joinSegments(baseDir, "/prescript.js"),
src: joinSegments(baseDir, "prescript.js"),
loadTime: "beforeDOMReady",
contentType: "external",
},
@ -37,7 +37,7 @@ export function pageResources(slug: FullSlug, staticResources: StaticResources):
},
...staticResources.js,
{
src: baseDir + "/postscript.js",
src: joinSegments(baseDir, "postscript.js"),
loadTime: "afterDOMReady",
moduleType: "module",
contentType: "external",