ftp-output-webpack-plugin

1.0.1 • Public • Published

install

npm install ftp-output-webpack-plugin --save-dev

Usage

the output path is relative to the root path on which your ftp server serves

the plugin is based on node-ftp and receives the same ftp options. please see connect method in Methods section in its READEME file

then you can do like this in webpack.config.js

const const FtpOutputPlugin = require('ftp-output-webpack-plugin')
 
module.exports = {
  output: {
    path: '/', // output path on ftp server
    publicPath: '/' // based on your development envrionment
  },
  plugins: [
    new FtpOutputPlugin(ftpOptions) // ftpOptions see as above description
  ]
}

Package Sidebar

Install

npm i ftp-output-webpack-plugin

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • shij