Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.44 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.44 KB

✨ unplugin-font-spider

Webfont compression plugin

Features

  • Only support SPA
  • Support vite plugin
  • Support router history mode

📦 install

  npm install @yuanjianming/unplugin-font-spider -D

💪 Basic Use

  • vite.config.ts
import { defineConfig } from 'vite'
import fontSpiderPlugin from '@yuanjianming/unplugin-font-spider/vite'
export default defineConfig({
    //....
    plugins: [fontSpiderPlugin({
        // history mode router path eg: ['/page1','/page2']
        routers:['']
    })],
})

👨‍💻 Config

option type default describe
routers string[] [] history mode router path