I am building a simple project that has below modules.
- login page (HTML)
- Register Page(HTML)
- Main Page(HTML)
Since everything will be in modules,I have chosen requirejs for this task plus it's module loading capability.
I wanted to know, if there will be 3 html files in my project, will there be 3 data-main, I mean 3 main files that will have configuration.
Is there way to have a single main file or I need to have only one HTML file, that shows one functionality(i.e. login or register or main page) at a time. Which one will be a good approach or practice. I am new to requirejs. Thanks in Advance.