Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Fonts inside nuxt.config removes css folder #169

Closed
estnml opened this issue Dec 7, 2023 · 3 comments · Fixed by #184
Closed

Changing Fonts inside nuxt.config removes css folder #169

estnml opened this issue Dec 7, 2023 · 3 comments · Fixed by #184

Comments

@estnml
Copy link

estnml commented Dec 7, 2023

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

@gibbsy
Copy link

gibbsy commented Jan 15, 2024

I've also experienced this issue

@ricardogobbosouza
Copy link
Collaborator

Really...this will solve it datalogix/google-fonts-helper#65

@ricardogobbosouza
Copy link
Collaborator

Released v3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants