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? |
Beta Was this translation helpful? Give feedback.
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/assets This will generate a parallel-sprite.svg file in the public folder (default). parallel-icons -t regular -i src/assets -o dist If 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"
} |
Beta Was this translation helpful? Give feedback.
The @atos-parallel/icons package contains an cli script named
parallel-icons
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
src/assets
folder. 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
dist
folder, you can specify that tooIf you want to include this as a step in your…