unused-fs-webpack-plugin
v1.0.1
Published
find unused file on webpack
Downloads
10
Readme
unused-webpack-plugin
查找项目中未使用的文件,生成unused-files.txt
文件
安装
npm install -D unused-fs-webpack-plugin
使用
const UnusedPlugin = require('unused-fs-webpack-plugin')
{
...
plugins: [
new UnusedPlugin({
baseUrl: ['src'],
exclude: ['node_modules']
})
]
}
webpack build 完成后会在 output 文件夹生成,unused-files.txt
插件安装
vscode: unused file view plugin 可以安装此插件,进行便捷删除文件