sftp-upload-plugin

1.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sftp-upload-plugin

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

4.44 kB

Total Files

5

Last publish

Collaborators

  • founder1992