From d7b320070a4aeeb56dc02590d9f9aa1faf735423 Mon Sep 17 00:00:00 2001 From: marleyrae Date: Fri, 9 Jun 2023 18:18:15 -0700 Subject: [PATCH] suppress vite dynamic import warning --- menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.js b/menu.js index a26d1e0..6e132a9 100644 --- a/menu.js +++ b/menu.js @@ -1,7 +1,7 @@ /* -------------------------------------------------------------------------------------- find and import config ---- */ const siteRoot = '/' + location.pathname.split('/')[1] -const {wayback} = await import(`${siteRoot}/config.js`) +const {wayback} = await import(/* @vite-ignore */`${siteRoot}/config.js`) /* --------------------------------------------------------------------------------------------- import menu css ---- */ @@ -23,7 +23,7 @@ archiveRoot.innerText = 'Home' menu.append(archiveRoot) let changelog = document.createElement('a') -changelog.setAttribute('href', `${siteRoot}/CHANGELOG.txt`) +changelog.setAttribute('href', `/${siteRoot}/CHANGELOG.txt`) changelog.setAttribute('target', '_blank') changelog.innerText = 'Changelog' menu.append(changelog)