render ssr
This commit is contained in:
parent
3673c0dc6f
commit
a4a8dc9f0d
|
@ -13,6 +13,8 @@ import '@/styles/index.scss'
|
||||||
const renderPreloadLink = (file: string) => {
|
const renderPreloadLink = (file: string) => {
|
||||||
if (file.endsWith('.js')) {
|
if (file.endsWith('.js')) {
|
||||||
return `<link rel="modulepreload" crossorigin href="${file}">`
|
return `<link rel="modulepreload" crossorigin href="${file}">`
|
||||||
|
} else if (file.endsWith('.js')) {
|
||||||
|
return `<link rel="modulepreload" crossorigin href="${file}">`
|
||||||
} else if (file.endsWith('.css')) {
|
} else if (file.endsWith('.css')) {
|
||||||
return `<link rel="stylesheet" href="${file}">`
|
return `<link rel="stylesheet" href="${file}">`
|
||||||
} else if (file.endsWith('.png')) {
|
} else if (file.endsWith('.png')) {
|
||||||
|
|
Loading…
Reference in a new issue