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

最新文章

  1. C++控制台贪吃蛇代码
  2. [javascript svg fill stroke stroke-width circle 属性讲解] svg fill stroke stroke-width circle 属性 绘制圆形及引入方式讲解
  3. 01 HTML基础
  4. Oracle 客户端连接服务器[转]
  5. [AaronYang]C#人爱学不学[3]
  6. 【转】WMI使用的WIN32_类库名
  7. SQL 递归查询
  8. reds pub/sub官方文档翻译
  9. 代码对齐 分类: C#小技巧 2014-04-17 14:45 166人阅读 评论(0) 收藏
  10. Javascript设计模式系列二
  11. Restify —— 在Node.js中构建正确的REST Web服务
  12. linux_文件权限
  13. .NETCore 快速开发做一个简易商城
  14. 大战Java虚拟机【0】——目录
  15. js 30Dom应用
  16. 关于Flutter初始化流程,我必须告诉你的是...
  17. 实体类和json互相转换
  18. github 开源 代码 学习 集合(转载)
  19. alpha冲刺随笔(一)
  20. matlab中将矩阵按照行打乱顺序的一个例子

热门文章

  1. docker进入容器的几种方法
  2. spring 通过编程来获取属性文件
  3. metabase实施文档
  4. JQuery 当点击input后,单选多选的选中状态
  5. JavaScript篇(一)二叉树的插入 (附:可视化)
  6. 每日技术总结:fly.js,个位数前补零等
  7. 多校连萌15-8-12#A
  8. (转)RMAN-06054: media recovery requesting unknown archived log for thread...
  9. swiper如何实现轮播嵌套轮播
  10. LA 5713 - Qin Shi Huang's National Road System(HDU 4081) MST