Reading from a separate config file
I wish to know what is the right way to use a 'configuration' file for my jQuery plugin. I'm using an editor that accepts configuration options. Right now I've a format that looks similar to -
`editor.js`
```
let config = {
opt1: 'someVal',
opt2: 'someOtherVal'
}
$(".editor").awesomeEditor(config);
```
I was thinking I should maintain a separate config file instead where I define `config` options. But then, what is the right way to include this new config file so that my plugin can read those options?
Should I simply name the file as `config.js` and then include it in my html right before my `editor.js` file in html?
Would really appreciate your guidance. Thank you.