0.2.2 • Published 5 years ago
webpack-upload-zeroojs-plugin v0.2.2
webpack-upload-zeroojs-plugin
Automatically upload the packaged files of webpack project
Installation
npm install webpack-upload-zeroojs-plugin --save-devor
yarn add webpack-upload-zeroojs-plugin -DUsage
// 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