title: Confused between modules and bundles property in RequireJS / r.js build files
body: <p>I am very confused at to what the difference is between the "bundles" property and the "modules" property in a r.js build file that might look something like:</p>
  
  <pre><code>({
      "allowSourceOverwrites": false,
      "preserveLicenseComments": false,
      "findNestedDependencies": false,
      "optimizeAllPluginResources": true,
      "dir":"../public/bundles",
      "baseUrl": "../public/static",
      "optimize":"none",
      "mainConfigFile": "../public/static/app/js/main.js",
      "normalizeDirDefines": "all",
      "paths" :{
          requireLib : 'vendor/require',
          jqueryUI: "empty:",
          jqueryUICSS: "empty:"
      },
      "modules": [
          {
              name: "shared",
              include: [
                  'jquery',
                  'async',
                  'backbone'
              ],
              exclude:[]
          }
      ],
      "bundles": {
          'shared': [],
          'secondary': []
      },
      "stubModules":['text']
  })
  </code></pre>
  
  <p>I am having a lot of trouble finding good information on how to create multiple bundles for a RequireJS project. When I just use the modules property and eliminate the bundles property, r.js goes looking for a file called shared.js - and I am not sure why.</p>