Socket
Socket
Sign inDemoInstall

sftp-webpack-plugin

Package Overview
Dependencies
21
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sftp-webpack-plugin

it can allow the content of a folder upload to a remote server


Version published
Weekly downloads
12
increased by1100%
Maintainers
1
Install size
2.37 MB
Created
Weekly downloads
 

Readme

Source

##sftp-webpack-plugin webpack的插件,用于上传文件到指定服务器。

Installation

Install the plugin with npm:

$ npm install sftp-webpack-plugin --save-dev

Basic Usage

add the plugin to your webpack config as follows:

var SftpWebpackPlugin = require('sftp-webpack-plugin')
var webpackConfig = {
  entry: 'index.js',
  output: {
    path: 'dist',
    filename: 'index_bundle.js'
  },
  plugins: [new SftpWebpackPlugin({
    port: 'your port',
    host: 'your host',
    username: 'your username',
    password: 'your password',
    from: 'you neeed upload file path ',
    to: 'you want to destination'
  })]
}

Configuration

The plugin allowed values are as follows:

  • port: 服务器端口。
  • host: 服务器地址。
  • username: 服务器登陆用户名。
  • password: 服务器登陆密码。
  • from: 你需要上传的文件路径或者文件,其中对于文件,可以是文件路径的数组。
  • to: 服务器上的目标路径。

Keywords

FAQs

Last updated on 13 Mar 2016

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