x-http-push-webpack-plugin
v1.0.4
Published
webpack plugin for upload files to server with http
Downloads
5
Readme
安装
npm install http-push-webpack-plugin --save-dev
配置
var HttpPushWebpackPlugin = require('http-push-webpack-plugin');
new HttpPushWebpackPlugin({
receiver: 'http://host:port/receiver', // 服务端文件上传接口
token: 'token', // 验证token
to: '/home/work/xxx' // 上传文件目录
})
服务端部署
TODO: 后续补充