1.0.0 • Published 5 years ago

scp-webpack-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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
        })
    ]
}