From 0a992da390fa17704ba26ff28adbe73844f44f6b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 9 Jan 2021 00:38:55 +0800 Subject: [PATCH] chore: fix --- src/client/app/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/utils.ts b/src/client/app/utils.ts index 0eee7e11..45d72304 100644 --- a/src/client/app/utils.ts +++ b/src/client/app/utils.ts @@ -28,7 +28,7 @@ export function pathToFile(path: string): string { pagePath = pagePath.slice(base.length).replace(/\//g, '_') + '.md' // client production build needs to account for page hash, which is // injected directly in the page's html - const pageHash = __VP_HASH_MAP__[pagePath] + const pageHash = __VP_HASH_MAP__[pagePath.toLowerCase()] pagePath = `${base}assets/${pagePath}.${pageHash}.js` } else { // ssr build uses much simpler name mapping