The Code Coverage tool visually shows you which lines of code in your CSS and JavaScript are used and unused. You can now export your raw Code Coverage data which then opens up possibilities for tooling integration, such as a tool which can modify your CSS/JS based on its used/unused code.

To try this feature:

Open up the Coverage pane by clicking the three dots in the drawer and

  • Selecting Coverage
  • Select Start Instrumenting coverage and reload Page
  • Click the Export button

Example

[{
"url": "https://example.com/main.css",
"ranges": [{
"start": 0,
"end": 106
},
{
"start": 531,
"end": 787
}
],
"text": "body{margin:0;font-family:\"Helvetica Neue\",\"Helvetica\",Helvetica,Arial,sans-serif}*{box-sizing:border-box}.header{background-color:#efefef;padding:10px 30px;display:flex;justify-co...."
}]

原文:Chrome DevTools: Export your raw Code Coverage Data

最新文章

  1. c++双字符常量
  2. 如何查看JDK以及JAVA框架的源码
  3. [转载]:Fortran字符串的故事
  4. 2016年12月1日 星期四 --出埃及记 Exodus 20:22
  5. java找jar包、搜索class类 搜索maven
  6. HTML 5:绘制旋转的太极图
  7. Qt数据库(sqlite) — 总结
  8. MapReduce概念(转)
  9. sun.misc.BASE64Encoder是内部专用 API, 可能会在未来发行版中删除
  10. ●POJ 2187 Beauty Contest
  11. Sharepoint 2010 自定义WebService 找不到网站应用程序
  12. php+javascript实现的动态显示服务器运行程序进度条功能示例
  13. Monitor类:Object synchronization method was called from an unsynchronized block of code.
  14. postfix 邮箱设置及常见错误
  15. Java 基础学习总结(一)抽象类和接口
  16. Liquibase使用入门
  17. KNN算法的感受 1
  18. Java 实现的SnowFlake生成UUID (Java代码实战-007)
  19. CCProgressTo和CCProgressTimer
  20. sql server 查询分析器中表名无效,有红线,其实是这张表的

热门文章

  1. ☆ [HDU4825] Xor Sum「最大异或和(Trie树)」
  2. linux 定时任务到秒级
  3. Git初始化及配置
  4. MT【308】投影的定义
  5. MT【307】周期数列
  6. RequestContextHolder 很方便的获取 request
  7. NOIP2012疫情控制(二分答案+树上贪心)
  8. 【php】php实现数组分块
  9. servlet 会话技术
  10. [luogu3834][可持久化线段树 1(主席树)]