webpack-basic-ftp-plugin
This plugin is a wrapper for basic-ftp. You can upload directory to your ftp server after webpack build done.
Note: As this plugin and basic-ftp
both use async/await
, so you need to use Node.js 8+.
Usage
const WebpackBasicFtpPlugin = ;moduleexports = // ... plugins: host: 'your host' port: 21 user: 'username' password: 'password' secure: false override: true // it will clean remote dir before uploading. localDir: path remoteDir: '/your/remote/dir/'