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

Feature: Adding possibility to choose unicode range

Open pommedepain opened this issue 2 years ago • 1 comments

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 🙏

pommedepain avatar May 12 '22 15:05 pommedepain

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',
      },
    }),
  ],
}

stafyniaksacha avatar Jul 21 '22 16:07 stafyniaksacha