<commit_before># webpack-clean-obsolete-chunks
[![npm version](https://badge.fury.io/js/webpack-clean-obsolete-chunks.svg)](https://badge.fury.io/js/webpack-clean-obsolete-chunks)
[![Coverage Status](https://coveralls.io/repos/github/GProst/webpack-clean-obsolete-chunks/badge.svg?branch=master)](https://coveralls.io/github/GProst/webpack-clean-obsolete-chunks?branch=master)

A webpack plugin to remove obsolete chunk files in webpack watch mode. 
Especially useful when use hashes in output file names.

## Installation

```
npm install webpack-clean-obsolete-chunks --save-dev
```

## Usage

Just add this plugin as usual.

``` javascript
// webpack.config.js
var CleanObsoleteChunks = require('webpack-clean-obsolete-chunks');

module.exports = {
    // ...
    plugins: [<commit_msg>added Travis CI badge into README.md<commit_after># webpack-clean-obsolete-chunks
[![npm version](https://badge.fury.io/js/webpack-clean-obsolete-chunks.svg)](https://badge.fury.io/js/webpack-clean-obsolete-chunks)
[![Coverage Status](https://coveralls.io/repos/github/GProst/webpack-clean-obsolete-chunks/badge.svg?branch=master)](https://coveralls.io/github/GProst/webpack-clean-obsolete-chunks?branch=master)
[![Build Status](https://travis-ci.org/GProst/webpack-clean-obsolete-chunks.svg?branch=master)](https://travis-ci.org/GProst/webpack-clean-obsolete-chunks)

A webpack plugin to remove obsolete chunk files in webpack watch mode. 
Especially useful when use hashes in output file names.

## Installation

```
npm install webpack-clean-obsolete-chunks --save-dev
```

## Usage

Just add this plugin as usual.

``` javascript
// webpack.config.js
var CleanObsoleteChunks = require('webpack-clean-obsolete-chunks');

module.exports = {
    // ...
    plugins: [
{'fraction_non_alphanumeric': 0.1531018782014798, 'fraction_numerical': 0.0, 'mean_word_length': 4.782894736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4272457', 'n_tokens_mistral': 613, 'n_tokens_neox': 583, 'n_words': 99}