I
I
inkShio2018-04-20 15:25:42
gulp.js
inkShio, 2018-04-20 15:25:42

How to organize proper SVG sprite names in gulp?

I'm using gulp-svg-sprite .
How to organize this in gulp?
There are folders with files
folder-icons/
-- icon1.svg
-- icon2.svg
-- icon3.svg
folder-social/
-- social1.svg
-- social2.svg
-- social3.svg
At the output I want to get
folder-icons- sprite.svg
folder-social-sprite.svg
For each folder, write a task in gulp, somehow not comme il faut.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inkShio, 2019-04-14
@inkShio

"shape": {
  "id": {
    "separator": "-"
  }
}

the output will be sprite.svg where id will be folder-icon_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question