0.0.1 • Published 6 years ago

clean-theme-webpack-plugin v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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