0.0.3 • Published 2 years ago

auto-deploy-webpack-plugin v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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)],
};