首页 > 其他 > 详细

[SVG] Combine Multiple SVGs into an SVG Sprite

时间:2017-03-02 23:11:46      阅读:165      评论:0      收藏:0      [点我收藏+]

In this lesson, we’ll explore the process of combining all of your SVG icons into one SVG sprite, to be included directly into markup. We’ll use the command line, along with the svgo and svg-sprite-generator npm packages to automate the process of compressing the SVGs and creating the sprite.

Note: This lesson assumes you have npm installed.

 

Install:

npm i - svgo svg-sprite-generator

 

Run:

svgo -f icons -o icons/out && svg-sprite-generate -d icons/out -o icons/out/sprite.svg

 

[SVG] Combine Multiple SVGs into an SVG Sprite

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

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