{"library":"vite-plugin-font","type":"library","category":null,"description":"A Vite plugin and family of bundler plugins (Vite, Nuxt, Next.js, Webpack, Rspack) for automatic web font optimization and CJK font splitting. Version 5.1.2 (stable, with recent releases up to 7.6.8 on the underlying cn-font-split engine). Powered by Rust-native cn-font-split for 50% faster builds. Key differentiators: per-project character subsetting for first-screen optimization, automatic WOFF2 conversion, CSS-only approach (no runtime JS), and built-in CLS offset reduction. Supports both full-scale and extremely lightweight optimization modes, with tree-shakeable font info exports. Actively maintained by the Chinese WebFont Project.","language":"javascript","status":"active","version":"5.1.2","tags":["javascript","vite","vite-plugin","nuxt","nuxt-plugin","next","next-plugin","webpack","webpack-plugin","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-font","imports":["import Font from 'vite-plugin-font'","import viteFont from 'vite-plugin-font'","Font.vite()","import { css, fontFamilyFallback } from './font.ttf';"]},{"cmd":"yarn add vite-plugin-font","imports":[]},{"cmd":"pnpm add vite-plugin-font","imports":[]}],"homepage":"https://www.cnfont.com","github":"https://github.com/KonghaYao/cn-font-split.git#release","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-font","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}