Skip to content

Upload your packaged folder to the specified path on the server

License

Notifications You must be signed in to change notification settings

handsomezyw/auto-deploy-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-deploy-webpack-plugin

Upload your packaged folder to the specified path on the server( The file in the specified path will be cleared first )

Installation

Install with npm

npm install @handsomezyw/auto-deploy-webpack-plugin

Usage

const AutoDeployWebpackPlugin = require("@handsomezyw/auto-deploy-webpack-plugin");

const options = {
  serverOptions: {
    username: "administrator",
    host: "xxx.xx.x.xxx",
    password: "123456"
  },
  localPath: "/Users/xx/Desktop/demo/dist",
  serverPath: "Desktop/project/public"
};

// webpack.config.js
module.exports = {
  plugins: [new AutoDeployWebpackPlugin(options)]
};

options

  • serverOptions { object } connect to the SSH configuration of the server

    • username { string } your server username

    • password { string } your server password

    • host { string } your server ip

    • privateKey { string } your privateKey

  • localPath local folder path

  • serverPath server folder path

About

Upload your packaged folder to the specified path on the server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published