Skip to content

E-two/webpack-ftp-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-ftp-upload

webpack plugin for ftp upload

Installation

npm i -D webpack-ftp-upload

or

yarn add --dev webpack-ftp-upload

Usage

add following code to your webpack config file.

const WebpackFtpUpload = require('webpack-ftp-upload')

new WebpackFtpUpload('path'); // path.join(__dirname, '..')           

add .ftpcon

    {
        "host": "x.x.x.x",
        "port": "22",
        "username": "xx",
        "password": "xxx",
        "path": "remote path"
    }

Simple example

const WebpackFtpUpload = require('webpack-ftp-upload')

module.exports = {
    entry: 'ftp.js',
    output: {
        path: path.join(__dirname, 'dist'),
        filename: 'ftp_bundle.js'
    },
    plugins: [
        new WebpackFtpUpload('path')
    ]
}

License

MIT © etwo

About

webpack plugin for ftp upload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published