1.1.8 • Published 2 years ago

upload-server-webpack-plugin v1.1.8

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

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/",
    }),
    ...
  ],
  ...
1.1.8

2 years ago

1.1.7

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago