@zouzhiqiang/upload-ftp-webpack-plugin
v0.0.1
Published
webpack打包完成后同步至ftp服务器
Downloads
1
Maintainers
Readme
@zouzhiqiang/upload-ftp-webpack-plugin
webpack打包完成后同步至ftp服务器
Install
$ npm install --save-dev @zouzhiqiang/upload-ftp-webpack-plugin
Usage
// 引入
const UploadFtpWebpackPlugin = require('@zouzhiqiang/upload-ftp-webpack-plugin');
{
// ...webpack配置
plugins: [
// 添加插件
new UploadFtpWebpackPlugin({
// ftphost
host: 'xxxx',
// 端口
port: 21,
// 用户名
user: 'xxxx',
// 密码
password: 'xxxxx',
// 上传根路径
rootPath: '/wwwroot/'
})
]
}