1.3.7 • Published 4 years ago

clean-built-webpack-plugin v1.3.7

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

version dependencies

clean-built-webpack-plugin

A webpack plugin to clean your built directory before compiling.

It is a better alternative to clean-webpack-plugin, because it supports files ignoring.

Getting started

To begin, you need install it.

npm i -D clean-built-webpack-plugin

Next, add plugin to your config, ex.:

// webpack.config.js
const CleanPlugin = require('clean-built-webpack-plugin');

const config = {
  plugins: [
    new CleanPlugin()
  ]
}

module.exports = config;

Configuring

NameTypeDefaultDescription
ignorestring[][]The array of files to ignore (see supported paterrns)
verbosebooleanfalseIf true, writes logs to console (always enabled if dry or force is true)
drybooleanfalseIf true, simulates the removing and see what would be deleted
forcebooleanfalseIf true, allows deleting files outside current working directory
event'before'|'after''before'Running time (before or after compiling)
includestring[]['*']The array of files to remove (if not specified, remove all files excludingspecified in ignore)
1.3.7

4 years ago

1.3.4

4 years ago

1.2.1

4 years ago

1.1.7

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago