scp-webpack-plugin
v1.0.0
Published
A webpack plugin to help you upload file.
Downloads
1
Readme
scp-webpack-plugin
A little webpack plugin help you to upload your files
Usage
npm i -D scp-webpack-plugin
const ScpWebpackPlugin = require('scp-webpack-plugin')
module.exports = {
// ...
plugins: [
// upload files in 'dist' directory to './static/dist' directory
new ScpWebpackPlugin({
localPath: 'dist', // local directory
host: 'xx.xx.xxx.xxx',
port: '22', // default 22
username: 'username',
password: 'password',
remotePath: './static/dist' // target directory
})
]
}