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

Find way to merge arrays in config without "overwriting elements" #897

Open
cmdcolin opened this issue Jun 6, 2017 · 2 comments
Open

Find way to merge arrays in config without "overwriting elements" #897

cmdcolin opened this issue Jun 6, 2017 · 2 comments
Labels
help wanted actively soliciting new contributors to take this on!

Comments

@cmdcolin
Copy link
Contributor

cmdcolin commented Jun 6, 2017

There are some scenarios where if you try to define an array of things in the config then it can overwrite existing defaults. Technically it's not "overwriting" actually, but mixing together arrays of things, which has weird effects

One example is for the menuTemplate configuration you need to define "placeholders" http://gmod.827538.n3.nabble.com/Gmod-ajax-quot-menuTemplate-quot-placeholder-examples-breaks-highlighting-td4057857.html

There are other situations like if you try to define plugins in multiple config files then it can cause interference, so it really is best to only define plugins in a single jbrowse config file, not some in jbrowse.conf, some in trackList.json, etc.

@cmdcolin
Copy link
Contributor Author

cmdcolin commented Jun 6, 2017

cc @rdhayes

@cmdcolin
Copy link
Contributor Author

Random thing I stumbled on

https://github.com/survivejs/webpack-merge

Merging configs with array appending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted actively soliciting new contributors to take this on!
Projects
None yet
Development

No branches or pull requests

2 participants