How to add custom icons to the parallel sprite to use along the default icons? #8
|
I need to add custom icons to the parallel sprite to use along the default icons. Could you tell me how to include my custom icons with Parallel default icons into one sprite? |
Replies: 1 comment
|
The @atos-parallel/icons package contains an cli script named The parallel-icons script provides a way to generate a custom sprite and also to include additional icons
Let's say you'd want to generate a single sprite containing regular icons and custom icons from your parallel-icons -t regular -i src/assetsThis will generate a parallel-sprite.svg file in the public folder (default). parallel-icons -t regular -i src/assets -o distIf you want to include this as a step in your package.json, you could do it as follow: "scripts": {
"build:sprite": "parallel-icons -t regular -i src/assets -o dist"
} |
The @atos-parallel/icons package contains an cli script named
parallel-iconsThe parallel-icons script provides a way to generate a custom sprite and also to include additional icons
Let's say you'd want to generate a single sprite containing regular icons and custom icons from your
src/assetsfolder. You could do it like this:This will generate a parallel-sprite.svg file in the public folder (default).
If you'd prefer to create it somewhere else, like let's say the
distfolder, you can specify that tooIf you want to include this as a step in your…