google-fonts icon indicating copy to clipboard operation
google-fonts copied to clipboard

It only downloads 400 font-weight

Open mehmetuygun opened this issue 7 months ago • 9 comments

My Nuxt config file is as below

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  css: ['~/assets/css/main.css'],

  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  },

  modules: [
    '@nuxt/image',
    [
      '@nuxtjs/google-fonts',
      {
        display: 'swap',
        subsets: 'latin',
        families: {
          Inter: {
            wght: [100, 400, 500, 900],
          },
          Lexend: {
            wght: [100, 400, 500, 900],
          },
        },
        prefetch: false,
        preconnect: false,
        preload: false,
        download: true,
        base64: false,
      },
    ],
  ],
})

It only downloads 400 font-weight.

mehmetuygun avatar Dec 15 '23 17:12 mehmetuygun