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

Support --config with JSON Config File #15

Closed
menghif opened this issue Oct 5, 2021 · 0 comments · Fixed by #16
Closed

Support --config with JSON Config File #15

menghif opened this issue Oct 5, 2021 · 0 comments · Fixed by #16

Comments

@menghif
Copy link
Contributor

menghif commented Oct 5, 2021

Hi, I would like add a --config option to specify all of the other SSG options in a JSON formatted configuration file.

Example:

node index.js --config options.json

where options.json is equal to:

{
  "input": "./docs",
  "output": "./web"
}

would be the equivalent of doing node index.js -i ./docs -o ./web

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 a pull request may close this issue.

1 participant