JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2346706
  • Score
    100M100P100Q198848F

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

Package Exports

  • clean-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clean-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Clean for webpack

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

new Clean(paths, context)

Parameter Description Example
paths An array of string paths to clean ['dist', 'build']
context (optional) The path root. By default uses webpack.config.js as root './root'

Example

var Clean = require('clean-webpack-plugin');

module.exports = {
  plugins: [
    new Clean(['dist', 'build'])
  ]
}

License

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