0.0.34 • Published 4 years ago
webpack-remove-files-after-upload v0.0.34
const RemoveFilesAfterUpload = require('webpack-remove-files-after-upload');
module.exports = {
plugins: [
new RemoveFilesAfterUpload({
localPath: 'dist', // local directory
host: 'path.to.host',
port: '22', // default 22
username: 'username',
password: '########',
remotePath: '/var/html/www', // target directory
filesToDelete: '.html5, .js, .png' // if empty, no files will be deleted
})
]
};