clean-theme-webpack-plugin
v0.0.1
Published
A webpack plugin to remove your build folder(s)
Downloads
3
Maintainers
Readme
CleanTheme for WebPack
A webpack plugin to remove/clean your build js of theme folder(s) before building
Installation
npm i clean-theme-webpack-plugin --save-dev
Usage
const CleanThemeWebpackPlugin = require('clean-theme-webpack-plugin')
{
plugins: [
new CleanThemeWebpackPlugin({ options })
]
}
Example Webpack Config
plugins: [
new CleanWebpackPlugin({
root: './dist',
theme: [addtionalTheme, defaultTheme]
})
]
Options and defaults (Optional)
{
// Absolute path to your webpack output folder
root: __dirname + '/dist',
// Your themes
theme: ['red', 'green']
}