# vite-release-plugin **Repository Path**: ksdhy/vite-release-plugin ## Basic Information - **Project Name**: vite-release-plugin - **Description**: 用于vite的打包部署插件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-30 - **Last Updated**: 2024-10-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 用于构建发布流程的插件 使用说明: ```js releasePlugin({ serverConfig: { host: "host", port: "port", // SFTP 默认端口 username: "username", password: "password+", // 或使用 privateKey }, serverPath: "serverPath", exclude: [], }), ``` 添加 scripts ```json { "scripts": { "release": "vite build --mode release" } } ``` 执行命令即可