# webpack-exclude-unused-files-plugin

> 在构建过程中使用，筛选出指定目录下的所有未被webpack处理的文件，主要用于优化仓库文件，清除无用文件

Latest version **1.0.1** (published 2020-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-exclude-unused-files-plugin
pnpm add webpack-exclude-unused-files-plugin
yarn add webpack-exclude-unused-files-plugin
bun add webpack-exclude-unused-files-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-20 |
| First published | 2020-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AnotherSola |
| Maintainers | anothersola |

## Links

- npm: https://www.npmjs.com/package/webpack-exclude-unused-files-plugin
- Repository: https://github.com/anotherso1a/webpack-exclude-unused-files-plugin
- Homepage: https://github.com/anotherso1a/webpack-exclude-unused-files-plugin#readme
- Issues: https://github.com/anotherso1a/webpack-exclude-unused-files-plugin/issues
- npm.io page: https://npm.io/package/webpack-exclude-unused-files-plugin

## Dependencies (2)

- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [micromatch](https://npm.io/package/micromatch.md) ^4.0.2

## Recent versions

- 1.0.1 (latest) — 2020-08-20
- 1.0.0 — 2020-08-19

## README

# webpack-exclude-unused-files-plugin

在构建过程中使用，筛选出指定目录下的所有未被webpack处理的文件，主要用于优化仓库文件，清除无用文件

## Install

```sh
npm i webpack-exclude-unused-files-plugin -D
```

## Usage

```js
// webpack.config.js
const ExcludeUnusedFilesPlugin = require('webpack-exclude-unused-files-plugin')
module.exports = {
  // other options
  plugins: [
    new ExcludeUnusedFilesPlugin()
  ]
}
```

## Options

### include

The files need to be checked, only accept absolute path string, can use arrays, default value is `path.resolve('src')`

### exclude

The files need to be ignored, accept path-string, regexp and micromatch-string.

### needRM

If you need remove unused files at webpack builded, you can make `needRM` to be True.

---
_Source: https://npm.io/package/webpack-exclude-unused-files-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
