标签:color mat tip com roc res class blog pac
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
标签:color mat tip com roc res class blog pac
原文地址:http://www.cnblogs.com/Answer1215/p/6492839.html