auto-deploy-webpack-plugin
v0.0.3
Published
a webpack plugin for deploy
Downloads
10
Maintainers
Readme
what is auto-deploy-webpack-plugin
a webpack plugin for deploy
usage
安装
npm install create-express-cli -D # npm
yarn -D add create-express-cli # yarn
使用
// webpack.config.js
const AutoDeployWebpackPlugin = requrie("auto-deploy-webpack-plugin");
const serverConfig = {
host: "xxxxxxxx",
username: "root",
password: "******",
serverDir: "/root/path",
};
module.exports = {
// ...
plugins: [new AutoDeployWebpackPlugin(serverConfig)],
};