Closed iuscare closed 3 years ago
Hi Pascal,
I know that issue and we also had this problem with the workaround "atomic" namespace. The problem with the svg path is that we need to solve two issues before:
So my Ideas to 1. A preset has method defaultConfig which returns the defaultConfig. :) In your wingsuit.config.js you have a parameters entry where you can overwrite this. (A bit storybook is don't that with addons) So the wingsuit.config.js would look like:
...
parameters: {
svg: {svgSourceFolder: 'path'}
}
...
For multiple spritemaps I will open another issue later.
That would be awesome. The file is the most sensible place for such configuration parameters
I update the svg preset. I also updated the svg preset https://wingsuit-designsystem.github.io/assets/svg/
Will close this for now. If you have any issues let me know.
Is your feature request related to a problem? Please describe. In the storybook preset a specific path to the icons for spritemap generation is expected, which follows the atomic design methodology. Currently the generation of the svgs.json fails, if there is no atoms path defined within the namespace.
Describe the solution you'd like It would be handy, if we can modify this part in case, we do not want to follow the methodology
Describe alternatives you've considered Up to now I can avoid the interruption by defining an additional atom path within the namespace, but this feels a little bit of hacky. It looks like this: