首页 > 其他 > 详细

[SVG] Optimize SVGs for Better Performance using svgo

时间:2017-02-24 23:38:33      阅读:309      评论:0      收藏:0      [点我收藏+]

Just like a bitmap image, you can compress an SVG by removing various pieces of code that aren’t necessary to it rendering properly. This reduces file size & download time, ultimately leading to a faster page load speed. You’ll learn how to automate the process of compressing your SVGs using svgo in the command line.

For a full list of options and plugins available to use with svgocheck out their documentation.

 

Install:

npm i -g svgo

 

Run:

Optimize the svg inside the folder:

svgo -f icons -o icons/out

技术分享

 

[SVG] Optimize SVGs for Better Performance using svgo

原文:http://www.cnblogs.com/Answer1215/p/6440579.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!