Paths in RequireJS



  • Let's say I have the following setup in a RequireJS project:

    server-foo serves an index.html with this:

    <script src="http://server-bar/js/app.js"></script>
    

    But then RequireJS does AMD over some other files, for example controllers/controller.js (relative path)

    The question is, from which server will the file controller.js be served? From server-foo or from server-bar ?

    P.S. Before you ask, this is some CDN magic we're trying to accomplish.


Log in to reply