unused-fs-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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 可以安装此插件,进行便捷删除文件

Readme

Keywords

none

Package Sidebar

Install

npm i unused-fs-webpack-plugin

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

8.79 kB

Total Files

6

Last publish

Collaborators

  • sumizu