1.0.1 • Published 7 years ago

ftp-output-webpack-plugin v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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

7 years ago

1.0.0

7 years ago