Skip to content

hgawait/webpack-ssh-deploy

Repository files navigation

webpack-ssh-deploy

a webpack ssh deploy plugin

Usage

deploy-config.js

module.exports = [
  {
    name: "",
    ssh: {
      host: "",
      port: ,
      username: "",
      password: ""
    },
    targetDir: "./dist",
    targetFile: "dist.zip",
    openCompress: true,
    openBackUp: false,
    deployDir: "",  // 发布路径
    releaseDir: "web"
  }
]

wepack.config.js

const WebpackSshDeploy = require("webpack-ssh-deploy").default

module.exports = {
  ...
  plugins: [new WebpackSshDeploy(require("./deploy-config")), ...]
}

About

a webpack ssh deploy plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published