Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a better configuration file + more options #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

raphael-dick
Copy link

Selected options are stored in the 'svg-inliner.json' file. The file is located in the directory the command was executed. On startup the values are loaded from the file. If a value does not exist in the configuration file. The user has to select the desired value. When the command is executed from a different directory you will have to re-configure the tool.

Update to existing options:

  • Export format
    exportType: react_component/string

Added options:

  • Toggle HTML Documentation output:
    createHtml: true/false
  • Directory where icons are located:
    iconsDirectory: <path relative to directory of execution>
  • Directory where export files will be created:
    exportDirectory: <path relative to directory of execution>

@raphael-dick
Copy link
Author

raphael-dick commented Dec 23, 2019

Sample 'svg-inliner.json' file:
{ "createHtml":true, "exportType":"react_component", "iconsDirectory":"/icons", "exportDirectory":"/export" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant