I'm new to RequireJs library and so I have a question. In my application I have one localistation file (called en.js, es.js, etc) and exactly one settings file (settings.js). The first one is used to localize my application (change messages, titles etc.) and the second one is used to set some configuration on the app. So, what I want is to load both localisation file (say, en.js) and settings.js file, before the main application file is loaded. Here the file tree structure:
\static
\js
\locale
en.js
\config
settings.js
\app
app.js
In tutorials I've seen only one entry point specified by data-main, like:
<script data-main="scripts/main" src="scripts/require.js"></script>
But in my case it seems like there two main files (en.js and settings.js), that should be loaded first. So, what is the right way to implement this?
EDIT
For those who are new to modular JavaScript, I advise to read this article. I had spent many hours, trying to understand documentation and dozens tutorials, before I found this article. And I think, it is the best source of information for modular JavaScript newbies.