Skip to content

decSunshineHe/upload-server-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

upload-server-webpack-plugin

Upload the packaged resources to the server based on node-ssh.

Install

$ npm install --save-dev upload-server-webpack-plugin

Usage

In webpack.prod.config.js:

import UploadServerPlugin from "upload-server-webpack-plugin";

export default {
  // This script will be ran after building
  ...
  plugins: [
    ...
    new UploadServerPlugin({
      host: "xxx.xxx.x.xx", // server host ip
      port: '22', // server host port
      username: "root",
      password: "123456",
      remotePath: "/home/",
    }),
    ...
  ],
  ...

About

Upload the packaged resources to the server based on node-ssh

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published