mipengine / mip2

MIP (移动网页加速器)通过优化网页JS、控制资源加载顺序,达到加速网页的效果。
https://www.mipengine.org/
MIT License
184 stars 49 forks source link

fix: mip-img 支持 webp #605

Closed Brunoon closed 5 years ago

Brunoon commented 5 years ago

相关 ISSUE: (ISSUE 链接地址)

339

1、升级点 (清晰准确的描述升级的功能点) 支持 <source> 子元素指定图片资源, <mip-img width="350" height="263" src="https://www.gstatic.com/webp/gallery/1.jpg"><source srcset="https://www.gstatic.com/webp/gallery/2.webp" type="image/webp" media="(min-width: 1000px)"> </mip-img>

2、影响范围 (描述该需求上线会影响什么功能) 支持 webp,支持 <source> 子元素

3、自测 Checklist

4、需要覆盖的场景和 Case

5、自测机型和浏览器

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 1184


Files with Coverage Reduction New Missed Lines %
src/util/naboo.js 1 80.51%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 1158: -0.07%
Covered Lines: 3877
Relevant Lines: 4017

💛 - Coveralls