Plugin for webpack to remove directories or files.
MIT License
Plugin for webpack to remove directories or files. (rm -r
)
Install the plugin with npm:
npm install remove-webpack-plugin --save-dev
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin('./public/')
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], )
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], 'show')
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], 'hide')
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], 'fatal')
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], {
errors: 'hide'
})
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], {
errors: 'show'
})
]
}
var RemoveWebpackPlugin = require('remove-webpack-plugin');
module.exports = {
plugins: [
new RemoveWebpackPlugin(['./public/', './build/'], {
errors: 'fatal'
})
]
}
new RemoveWebpackPlugin(paths, ?settings)
MIT