# unused-file-pligun

> 移除无用文件的webpack插件

Latest version **1.0.0** (published 2022-08-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install unused-file-pligun
pnpm add unused-file-pligun
yarn add unused-file-pligun
bun add unused-file-pligun
```

## 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.0 |
| Published | 2022-08-30 |
| First published | 2022-08-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | shubushao |

## Links

- npm: https://www.npmjs.com/package/unused-file-pligun
- Repository: https://github.com/ShuBuShao/unused-file-pligun
- Homepage: https://github.com/ShuBuShao/unused-file-pligun#readme
- Issues: https://github.com/ShuBuShao/unused-file-pligun/issues
- npm.io page: https://npm.io/package/unused-file-pligun

## Recent versions

- 1.0.0 (latest) — 2022-08-30

## README

# unused-file-pligun

## install

`npm i --save-dev unused-file-pligun`

## Usage

webpack.config.js

```js
const UnusedFilesPlugin = require("unused-file-pligun");
module.exports = {
  // ...
  plugins: [new UnusedFilesPlugin(option)],
};
```

## option 说明

| 参数          | 说明                                                              | 默认值            |
| ------------- | ----------------------------------------------------------------- | ----------------- |
| root          | 要扫描的根目录                                                    | ./src             |
| exclude       | 不扫描的目录, 从 root 中过滤,例如不扫描 commonm 目录, ['/common'] | []                |
| excludeSuffix | 不扫描后缀, 为空时扫描所有后缀, 比如不扫描图片 ['.png']           | []                |
| includeSuffix | 扫描后缀, 为空时扫描所有后缀, 例如仅扫描 js 文件['.js']           | []                |
| out           | 输出文件名称, 例如想将输出的无用文件列表命名为 abc, 'abc.json'    | unused-files.json |
| remove        | 是否执行删除操作                                                  | false             |

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