fix: reduce style loading flash
This commit is contained in:
@@ -22,6 +22,18 @@ export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-07-15",
|
||||
devtools: { enabled: true },
|
||||
css: ["~/assets/css/main.css"],
|
||||
app: {
|
||||
head: {
|
||||
link: [
|
||||
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
|
||||
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" },
|
||||
{
|
||||
rel: "stylesheet",
|
||||
href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
appVersion: getRepoVersion()
|
||||
|
||||
Reference in New Issue
Block a user