webpack-ssh2-sftp-file
v1.1.1
Published
Webpack clear console plugin
Downloads
55
Maintainers
Readme
webpack-ssh2-sftp-file
webpack-ssh-sftp-file2 plugin upload file by ssh2-sftp-clien functions during bundling
Installation
The plugin is available via npm:
$ npm i webpack-ssh2-sftp-file ssh2-sftp-client -D
Examples
You can see an example at demo/webpack.config.js.
var WebpackSsh2SftpFile = require('webpack-ssh2-sftp-file');
module.exports = {
plugins: [
// Other plugins.
new WebpackSsh2SftpFile(
{
server: {
host: '', // 服务器 IP
port: '', // 22
username: '',
password: ''
},
localPath: '',
romotePath: ''
}
)
]
}