menu

arrow_back How to organize the correct names for SVG sprites in gulp?

by
0 votes
Use 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

The output I want to
folder-icons-sprite.svg
folder-social-sprite.svg

For each folder, writing a task in gulp, as it is not comme Il faut.

1 Answer

by
 
Best answer
0 votes
"shape": {
"id": {
"separator": "-"
}
}

на выходе будет sprite.svg где id будут folder-icon_name