JSPM

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

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

Installation

npm i clean-webpack-plugin --save

Example Webpack Config

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

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

Parameters

new Clean(paths [, context])

  • paths - An array of string paths to clean
  • context - The path root. By default uses webpack.config.js as root (optional)

License

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