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

"overwriting" config set to false still overwriting files when download set to true. #155

Closed
djdd87 opened this issue Sep 18, 2023 · 1 comment · Fixed by #161
Closed

Comments

@djdd87
Copy link

djdd87 commented Sep 18, 2023

I've configured the following in my nuxt.config.ts:

  googleFonts: {
    display: 'swap',

    families: {
      Montserrat: {
        wght: [100, 200, 300, 400, 500, 600, 700, 800, 900]
      }
    },

    prefetch: false,
    preload: false,

    download: true,
    base64: false,
    inject: false,
    overwriting: false,
    outputDir: '~/assets/fonts'
  }

No matter what I try my font files are replaced every time I save the config file. I believe this is causing me an issue where my site's font reverts to times new roman.

If I set download: false then my fonts all render properly and everything looks OK. If I set download: true then my site loads with the correct font and then it pops out and is replaced with times new roman.

I've watched my assets/fonts directory and regardless of waht overwriting is set to, the font files are replaced each time I save the config file.

@djdd87 djdd87 changed the title "overwriting" config still overwriting files when download set to true. "overwriting" config set to false still overwriting files when download set to true. Sep 18, 2023
@ricardogobbosouza
Copy link
Collaborator

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.

2 participants