Socket
Socket
Sign inDemoInstall

webpack-ftp-upload-plugin

Package Overview
Dependencies
24
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webpack-ftp-upload-plugin

A webpack ftp upload plugin.


Version published
Weekly downloads
47
decreased by-38.96%
Maintainers
1
Install size
4.06 MB
Created
Weekly downloads
 

Readme

Source

Webpack-ftp-upload-plugin

A webpack ftp upload plugin, support upload file or folder to ftp server.

Installation

npm i -D webpack-ftp-upload-plugin

Usage

add following code to your webpack config file.

var WebpackFtpUpload = require('webpack-ftp-upload-plugin')

new WebpackFtpUpload({
    host: 'host',
    port: 'post', // default: 22
    username: 'user',
    password: 'password',
    local: 'local path', // eg. path.join(__dirname, 'dist')
    path: 'remote path', // eg. /var/www/ftp/
})            

Simple example

var path = require('path')
var WebpackFtpUpload = require('webpack-ftp-upload-plugin')

module.exports = {
    entry: './index.js',
    output: {
        path: path.join(__dirname, 'dist'),
        filename: 'index_bundle.js'
    },
    plugins: [
        new WebpackFtpUpload({
            host: '127.0.0.1',
            port: '22',
            username: 'root',
            password: '123456',
            local: path.join(__dirname, 'dist'),
            path: '/var/www/ftp/',
        })
    ]
}

License

This project is licensed under MIT.

Keywords

FAQs

Last updated on 31 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc