1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 13:35:23 +02:00

feat: Replace google-fonts module with nuxt/fonts (#5618)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Arsène Reymond 2025-07-09 00:07:18 +02:00 committed by GitHub
parent 50754ad012
commit 2d8f491666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 526 additions and 426 deletions

View file

@ -11,7 +11,7 @@ export default defineNuxtConfig({
"@vite-pwa/nuxt",
"@nuxtjs/i18n",
"@sidebase/nuxt-auth",
"@nuxtjs/google-fonts",
"@nuxt/fonts",
"vuetify-nuxt-module",
"@nuxt/eslint",
],
@ -66,7 +66,7 @@ export default defineNuxtConfig({
viewTransition: true,
},
css: ["~/assets/css/main.css", "~/assets/css/fonts.css", "~/assets/style-overrides.scss"],
css: ["~/assets/main.css", "~/assets/style-overrides.scss"],
runtimeConfig: {
sessionPassword: process.env.SESSION_PASSWORD || "password-with-at-least-32-characters",
@ -168,12 +168,11 @@ export default defineNuxtConfig({
},
},
},
googleFonts: {
fontsPath: "/assets/fonts",
download: false, // Disable automatic downloading
families: {
Roboto: [100, 300, 400, 500, 700, 900],
fonts: {
defaults: {
weights: ["100 900"],
styles: ["normal", "italic"],
subsets: ["cyrillic-ext", "cyrillic", "greek-ext", "greek", "vietnamese", "latin-ext", "latin"],
},
},
/* auth: {