1. 首页
  2. 数据库
  3. 其它
  4. webpack未使用:检查前端代码中不再使用的文件资产 源码

webpack未使用:检查前端代码中不再使用的文件资产 源码

上传者: 2021-02-06 12:51:28上传 ZIP文件 3.03KB 热度 66次
webpack未使用 检查前端代码中不再使用的文件/资产。 使用webpack --json的输出来查看捆绑中实际使用的文件,并列出不需要的文件。 用法: # install webpack-unused npm install -g webpack-unused # run webpack using your normal webpack config etc # with the --json switch to output the stats.json, and pipe to webpack-unused # unused files in the cwd will be li
用户评论