0.1.9 • Published 8 years ago

clean2-webpack-plugin v0.1.9

Weekly downloads
5
License
-
Repository
github
Last release
8 years ago

Clean for webpack

A webpack plugin to remove/clean your build folder(s) before building

This is a modified version, you can find original clean-webpack-plugin from clean-webpack-plugin(https://github.com/johnagan/clean-webpack-plugin], but original version has a problem that I can not specify deleting targets as you want. please checkout source code if you are intrested in.

Installation

npm i clean2-webpack-plugin --save

Example Webpack Config

var CleanFolders = require('clean2-webpack-plugin');

module.exports = {
  plugins: [
    new CleanFolders(['dist', 'build'],'you must specify absolute context path')
  ]
}

Parameters

new CleanFolders(paths , context)

  • paths - An array of string paths to clean
  • context - You have to specify your context root just like webpack.config.js context value

License

http://www.opensource.org/licenses/mit-license.php

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago