suppress vite dynamic import warning
This commit is contained in:
parent
1d0f31fe03
commit
d7b320070a
1 changed files with 2 additions and 2 deletions
4
menu.js
4
menu.js
|
@ -1,7 +1,7 @@
|
||||||
/* -------------------------------------------------------------------------------------- find and import config ---- */
|
/* -------------------------------------------------------------------------------------- find and import config ---- */
|
||||||
|
|
||||||
const siteRoot = '/' + location.pathname.split('/')[1]
|
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 ---- */
|
/* --------------------------------------------------------------------------------------------- import menu css ---- */
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ archiveRoot.innerText = 'Home'
|
||||||
menu.append(archiveRoot)
|
menu.append(archiveRoot)
|
||||||
|
|
||||||
let changelog = document.createElement('a')
|
let changelog = document.createElement('a')
|
||||||
changelog.setAttribute('href', `${siteRoot}/CHANGELOG.txt`)
|
changelog.setAttribute('href', `/${siteRoot}/CHANGELOG.txt`)
|
||||||
changelog.setAttribute('target', '_blank')
|
changelog.setAttribute('target', '_blank')
|
||||||
changelog.innerText = 'Changelog'
|
changelog.innerText = 'Changelog'
|
||||||
menu.append(changelog)
|
menu.append(changelog)
|
||||||
|
|
Loading…
Reference in a new issue