Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-upload-zeroojs-plugin

smallMote13ISC0.2.2

Automatically upload the packaged files of webpack project

upload, webpack, node-ftp, ftp, sftp, ssh2, auto, auto-upload

readme

webpack-upload-zeroojs-plugin

Automatically upload the packaged files of webpack project

Installation

npm install webpack-upload-zeroojs-plugin --save-dev

or

yarn add webpack-upload-zeroojs-plugin -D

Usage

// webpack.config.js
const WebpackUploadPlugin = require('webpack-upload-zeroojs-plugin');

module.exports = {
  entry: 'index.js',
  plugins: [
    new WebpackUploadPlugin({
       host: 'your remote ip or domain',
       port: 'default 22',
       username: 'default root',
       password: 'default null',
       localDir: 'local folder path,default webpack output dir',
       remoteDir: 'remote folder path'
    })
  ]
}

If console print Upload complete, connection closed!!! it's done!

License

MIT

Keywords

upload webpack node-ftp ftp sftp ssh2 auto auto-upload