1.0.1 • Published 1 year ago
@yuanjianming/unplugin-font-spider v1.0.1
��# (' unplugin-font-spider
Webfont compression plugin
Features
- Only support SPA
- Support
viteplugin - 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
| option | type | default | describe |
|---|---|---|---|
routers | string[] | [] | history mode router path |
1.0.1
1 year ago