Skip to content

插件列表

@meng-xi/vite-plugin 提供的 Vite 插件集合。

插件

插件说明
copyFile构建完成后复制文件或目录到指定位置
generateRouter根据 uni-app pages.json 自动生成路由配置
generateVersion自动生成版本号,支持文件输出和全局变量注入
injectIco将网站图标链接注入到 HTML 文件

通用配置

所有插件继承自 BasePlugin,共享以下基础配置:

选项类型默认值说明
enabledbooleantrue启用插件
verbosebooleantrue显示详细日志
errorStrategy'throw' | 'log' | 'ignore''throw'错误处理策略

Released under the MIT License.