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

Multiple configuration files. #2210

Closed
Lindsor opened this issue Oct 15, 2016 · 2 comments
Closed

Multiple configuration files. #2210

Lindsor opened this issue Oct 15, 2016 · 2 comments
Milestone

Comments

@Lindsor
Copy link

Lindsor commented Oct 15, 2016

Can you make it possible to load multiple configuration files.

For example in jekyll we would run

jekyll --config=_config.yml,_config2.yml serve

Which would pull all the configurations from the first file and then the second (so the seond file would take precedence).

@pirtleshell
Copy link
Contributor

I agree that this is a good idea.

We could change the config path logic from this line. When args.config === true we could send it to a module that returns this same filepath when only one config is present, but writes a composite config file if multiple options are found.

I'd like to help with this if we think it's a good idea?

@NoahDragon
Copy link
Member

Thanks to @pirtleshell, the feature has been implemented. #2211

NoahDragon pushed a commit that referenced this issue Nov 4, 2016
* multiconfig working

* rename and fix warning

* switched to hexo-log

* passing context to multiconfig for slilencing capability

* added tests

* formatting and undoing random change at line 328

* fixed logging output testing

* style error fixes... ✨
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants