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
- Host: GitHub
- URL: https://github.com/wgbx/unused-assets-webpack-plugin
- Owner: wgbx
- Created: 2024-10-30T02:31:57.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T09:35:54.000Z (7 months ago)
- Last Synced: 2025-04-18T19:00:15.497Z (about 1 month ago)
- Topics: node, webpack, webpack-plugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/unused-assets-webpack-plugin
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()]
}
}
```