Skip to content

duplicate configs #327

Closed
Closed

Description

Great work on require first of all.

At the moment I am having issues with multiple requirejs.config being duplicated for different pages. EG I have a config for my single page app but I also have a config for my qunit page. But the qunit page config is no different from the app config. Do you have any suggestions on having a shared config between pages?

Thanks

Mark

Activity

  1. millermedeiros commented on Jun 14, 2012

    @millermedeiros
    Member

    you can store the config as a separate file:

    <script src="js/lib/require.js"></script>
    <script src="js/config.js"></script>
    <script>
      require(['js/main']);
    </script>

    Or you can use a single entry point for all the pages and inside your main.js decide what to execute: http://blog.millermedeiros.com/single-entry-point-redux/

    PS: the mailing list and IRC (#requirejs at freenode) are better places for questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions