An open API service indexing awesome lists of open source software.

https://github.com/wgbx/unused-assets-webpack-plugin

webpack plugin:Find whether there are unused assets in the project
https://github.com/wgbx/unused-assets-webpack-plugin

node webpack webpack-plugin

Last synced: about 1 month ago
JSON representation

webpack plugin:Find whether there are unused assets in the project

Awesome Lists containing this project

README

        

unused-assets-webpack-plugin


Find whether there are unused assets in the project

[简体中文](./READM-ZH.md)

## Configuration Options

| **Configuration Option Name** | **Required** | **Meaning** | **Default Value** | **Type** |
| -------------- | ------------ | -------- | ---------- | -------- |
| `path` | No | The resource path to search |./src | `string` |
| `output` | No | The output file path |./unused-files.json |`string` |
| `exclude` | No | The file types to exclude | [] | `string[]` |

## [Installation](https://www.npmjs.com/package/unused-assets-webpack-plugin)

```bash
npm install unused-assets-webpack-plugin -D
// or
pnpm add unused-assets-webpack-plugin -D
```

## Usage

- vue.config.js

```js
const UnusedAssetsWebpackPlugin = require('unused-assets-webpack-plugin')

module.exports = {
configureWebpack: {
plugins: [new UnusedAssetsWebpackPlugin()]
}
}
```