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