1.0.1 • Published 9 months ago
@yuanjianming/unplugin-font-spider v1.0.1
��# (' 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
option | type | default | describe |
---|---|---|---|
routers | string[] | [] | history mode router path |
1.0.1
9 months ago