# unused-modules-webpack-plugin

> A Webpack plugin to find and report unused modules/files

Latest version **1.0.1** (published 2019-07-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install unused-modules-webpack-plugin
pnpm add unused-modules-webpack-plugin
yarn add unused-modules-webpack-plugin
bun add unused-modules-webpack-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 | 2019-07-12 |
| First published | 2019-07-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Teebo |
| Maintainers | teebo_ |
| Keywords | unused-files, webpack, webpack-plugin, unused-modules, unused-exports, exports, files |

## Links

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

## Dependencies (3)

- [colors](https://npm.io/package/colors.md) ^1.3.3
- [glob-all](https://npm.io/package/glob-all.md) ^3.1.0
- [util.promisify](https://npm.io/package/util.promisify.md) ^1.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-07-12
- 1.0.0 — 2019-07-12

## README

# UnusedModulesWebpackPlugin
 
A Webpack plugin to find and report unused modules/files.
 
## Installation
 
```
npm install --save-dev unused-modules-webpack-plugin
```
 
# Usage example
 
Import the plugin and include the instance in your plugins array of your Webpack config file
 
```javascript
... 
const UnusedModulesWebpackPlugin = require('unused-modules-webpack-plugin').UnusedModulesWebpackPlugin;
...
 
plugins: [
      new UnusedModulesWebpackPlugin({
      patterns: [
        "src/**/**.js",
        "!src/**/**.css",
      ],
      globOptions: { ignore: `node_modules/**/*` },
    }),
]
... 
```

Refer to the NPM package (glob-all)[https://www.npmjs.com/package/glob-all] for details on the **globOptions** that can be passed to your new instance.


# Note that the plugin's output will be printed before Webpack's emit console output

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