to-svg-file
This parser helps you generate SVG files from your vector assets.
Interface
Options
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
|
|
|
| The mustache template used to generate the file path to write to the file system.
Available variables:
|
Basic usage - Single mode
Our vector has a default mode and is in a group named "icons".
The parser will generate the following output: {directoryPath}/{groups}/{vectorName}.svg
Advanced usage - Multiple modes
Our vector has a 2 modes: light
and dark
and is in a group named "icons".
The parser will generate one file per mode:
{directoryPath}/{groups}/{vectorName}-{mode1}.svg
{directoryPath}/{groups}/{vectorName}-{mode2}.svg
Last updated