vite-plugin-autodeploy-distzip
TypeScript icon, indicating that this package has built-in type declarations

1.0.20 • Public • Published

Version License

distZip - 自动压缩插件

配合vite进行自动化压缩并部署的vite插件

目录

快速入门

安装

$ npm i vite-plugin-autodeploy-distzip -D               # 安装插件

目录说明:

├─ examples // 存放所有项目示例
├─ src
│  └─ index.ts    //入口文件

用法

// vite.config.js
...
plugins: [
	distZip({
		/*
    		outDir?: string, // 压缩包输出路径
    		distDir?: string, // 打包后文件路径
    		autoUpload?: boolean, // 是否自动上传
    		url?: string, // 自动部署地址
    		username?: string, // 登录用户名
    		way?: string, // 登录密码
    		projectId?: string, // 项目id
    		remark?: string, // 版本说明
		*/
	})
]
...

[→ 配置示例](examples/vite-vue3/vite.config.ts · 王开元/vite-plugin-distZip - 码云 - 开源中国 (gitee.com))

License

Package Sidebar

Install

npm i vite-plugin-autodeploy-distzip

Weekly Downloads

2

Version

1.0.20

License

MIT

Unpacked Size

4 MB

Total Files

6

Last publish

Collaborators

  • w1119279563