Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nuxtjs/google-fonts

nuxt-modules372.9kMIT3.2.0TypeScript support: included

Google Fonts module for Nuxt

readme

@nuxtjs/google-fonts

@nuxtjs/google-fonts

npm version npm downloads Github Actions CI Codecov License

Google Fonts module for Nuxt

Features

📖  Read more

Contributing

You can contribute to this module online with CodeSandBox:

Edit @nuxtjs/google-fonts

Or locally:

  1. Clone this repository
  2. Install dependencies using pnpm install
  3. Prepare development server using pnpm dev:prepare
  4. Build module using pnpm build
  5. Launch playground using pnpm dev

License

MIT License

Copyright (c) Nuxt Modules

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

v3.2.0

compare changes

🚀 Enhancements

  • Update google-fonts-helper (#184)

🩹 Fixes

  • Update ModuleOptions interface in module.ts (#179)

🏡 Chore

  • release: V3.1.3 (787efbf)
  • Update commands (5743728)
  • Test bundler module resolution (#176)

❤️ Contributors

v3.1.3

compare changes

🏡 Chore

❤️ Contributors

v3.1.2

compare changes

📖 Documentation

  • Add example for variable fonts (#170)

❤️ Contributors

v3.1.1

compare changes

🏡 Chore

  • release: V3.1.0 (61103de)
  • Use module-builder stub mode for more accurate types (#167)

❤️ Contributors

v3.1.0

compare changes

🚀 Enhancements

  • Add log message when downloading fonts (#144)

🩹 Fixes

  • Overwrite and duplicate fonts (#161)

📖 Documentation

  • Migrate to docus (#95)
  • Update image and colors (#148)
  • Update colors (#151)
  • Update social card (47a7ecf)

🏡 Chore

✅ Tests

❤️ Contributors

v3.0.2

compare changes

🩹 Fixes

  • Insert noscript tag in body open (#142)

🏡 Chore

  • Update deps (#141)
  • Disable module when head as function (#143)

❤️ Contributors

v3.0.1

compare changes

📖 Documentation

  • Update setup content (#124)

🏡 Chore

  • Move to nuxt-modules (#126)
  • Update deps (ed879ed)

✅ Tests

  • Dont use data-key (019772b)
  • Update (31c535c)

❤️ Contributors

v3.0.0

🏡 Chore

  • Update module (16e03a8)
  • Bump pnpm (623a5b0)

❤️ Contributors

3.0.0-1 (2022-10-25)

Features

  • Enable noscript tag
  • Force override fonts when has changed
  • Encoded family name

Chore

  • Update google-fonts-helper
  • Update @nuxt/kit
  • Migrate to pnpm

3.0.0-0 (2022-07-22)

⚠ BREAKING CHANGES

  • add support for nuxt 3/nuxt bridge (#94)

Features

  • add support for nuxt 3/nuxt bridge (#94) (fbe5d77)

2.0.0 (2022-06-09)

⚠ BREAKING CHANGES

  • default to font-display: swap unless preloading (#88)

Features

  • add preconnect hint for Google Fonts stylesheet (#85) (bb8c6f2)
  • default to font-display: swap unless preloading (#88) (1e50410)
  • turn on font stylesheet inlining by default (#87) (8b53012)
  • typescript rewrite (#54) (81259ca)

Bug Fixes

1.3.0 (2021-02-15)

Features

1.2.0 (2020-11-10)

Features

  • add option to use stylesheet (e47728b)

1.1.6 (2020-11-10)

1.1.5 (2020-11-09)

1.1.4 (2020-11-07)

Bug Fixes

  • update crossorigin attribute (feaeb9e), closes #27

1.1.3 (2020-10-22)

Bug Fixes

  • use script to load fonts (0a453c1)

1.1.2 (2020-10-20)

Bug Fixes

  • force hid to support client-side only (46ed9ec)

1.1.1 (2020-10-20)

Bug Fixes

  • font flickers when changing page (#21) (a992792)

1.1.0 (2020-10-11)

Features

Bug Fixes

  • render blocking resources (84c7f36)

1.0.3 (2020-09-17)

1.0.2 (2020-09-10)

Bug Fixes

1.0.1 (2020-09-09)

Bug Fixes

  • update google-fonts-helper (b32099d)

1.0.0 (2020-07-17)

0.1.0 (2020-07-13)

Bug Fixes