1.2.3 • Published 2 years ago

faster-webpack-upload-plugin v1.2.3

Weekly downloads
5
License
996.ICU
Repository
github
Last release
2 years ago

faster-webpack-upload-plugin

Upload your files to ftp server easier and faster,add support to 'webpack --watch'

npm.io LICENSE 996.icu

NPM

Installation

npm i -D faster-webpack-upload-plugin

Usage

add following code to your webpack config file.

const FasterUploadPlugin = require('faster-webpack-upload-plugin');

var webpackConfig = {
  entry: 'index.js',
  output: {
    path: 'assets',
    filename: 'index_bundle.js'
  },
  plugins: [
    new FasterUploadPlugin({

        // config options, you can find options detail down here

    })
  ]
}

Options Detail:

Option NameUsageTypeDefault Value
hostServer's IP addressString(none)
portNumber of ssh portString"22"
usernameUsername for authenticationString(none)
localPathFolder path which need uploadStringDeprecated,don't need it anymore
remotePathFolder path on serverString(none)
logShow log when is uploadingBoolean | {info: Boolean, progress: Boolean, warning: Boolean, error: Boolean}false
clearFolderClear remote path files for the first timeBooleanfalse
fileIgnoresFiles didn't upload(matching file path + file name)Array\<RegExp>(none)

for other options you can see https://github.com/mscdex/ssh2#client-methods

Change Log

1.2.2

- fix: ssh2 securty problem

1.2.1

- change: change license from MIT to 996.ICU License

1.2.0

- change: remove the code of scanning local directory, so remove the option "localPath"
- fix: when webpack watching mode add new folder, the plugin can auto retry and make it right

License

This project is licensed under 996.ICU.

1.2.3

2 years ago

1.2.2

3 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago