google-fonts
google-fonts copied to clipboard
Changing Fonts inside nuxt.config removes css folder
Hi, this my nuxt.config.ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/google-fonts",
"@vueuse/nuxt"
],
components: [
{ path: "~/components", pathPrefix: false }
],
googleFonts: {
inject: true,
base64: false,
download: true,
outputDir: "assets",
stylePath: "css/external/google-fonts.css",
fontsDir: "fonts",
families: {
Oxygen: true
}
},
css: ["~/assets/css/main.css", "~/assets/css/external/google-fonts.css"]
})
when i replace Oxygen with another font, it deletes the whole css folder and the contents and inserts the google-fonts.css file. So if i have some css files inside the folder and change the desired font, all my css would be gone