1.0.5 • Published 5 years ago

sftp-upload-plugin v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

sftp-upload-plugin

upload code through sftp when finish build

##Installation

npm i sftp-upload-plugin

##Usage use in your webpack plugin config

// in your webpack config
const sftpUploadPlugin = require('sftp-upload-plugin');

plugins: [
    new sftpUploadPlugin({
      host: '120.77.xxx.xxx',
      port: '22',
      username: 'founder',
      password: 'xxxxxxx',
      localPath: '/Users/xiaoming/Desktop/demo/dist',
      remotePath: '/opt/demo/dist'
    })
]

##Result

when webpack bundle finish you'll see like

--------- start loading ---------
 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100% | ETA: 0s | 151/151
--------- finish ---------

##License MIT

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