1.0.1 • Published 9 months ago

@yuanjianming/unplugin-font-spider v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

��# (' 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:['']
    })],
})

=�h�

=ػ� Config

optiontypedefaultdescribe
routersstring[][]history mode router path