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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Adding possibility to choose unicode range #20

Open
pommedepain opened this issue May 12, 2022 · 1 comment
Open

Feature: Adding possibility to choose unicode range #20

pommedepain opened this issue May 12, 2022 · 1 comment

Comments

@pommedepain
Copy link

Hey ! First, thank you very much for this very useful plugin !
I'm currently trying to optimize my website and being able to select a unicode range for Google font would be very useful te reduce bundle size 馃
Thank you 馃檹

@stafyniaksacha
Copy link
Member

Hi @pommedepain,
You can use the google.text option:

// vite.config.js
import { VitePluginFonts } from 'vite-plugin-fonts'

export default {
  plugins: [
    VitePluginFonts({
      // Google Fonts API V2
      google: {
        text: 'ViteAwsom',
      },
    }),
  ],
}

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

No branches or pull requests

2 participants