Skip to content

founder1992/sftp-upload-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sftp-upload-plugin npm last commit publish size

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

About

Upload code through SFTP when finish build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published