title: 'define' is not defined error on RequireJS & Webapp Yo generator
body: <p>I have struggled a few days to figure this out,, but finally I need your help today.<br>
  my repo: <a href="https://github.com/seoyoochan/bitsnut-web" rel="nofollow">https://github.com/seoyoochan/bitsnut-web</a></p>
  
  <hr>
  
  <p><strong>what I want to achieve</strong>:<br>
   - Load and optimize r.js
   - Write bower tasks for RequireJS and r.js :<br>
  &nbsp;&nbsp; tasks are:  minify &amp; uglify &amp; concatenation for RequireJS, and optimise with r.js on production<br>
   - How to exclude js script tags in <code>index.html</code> when using <code>wiredep</code> tasks and load them through RequireJS loader?</p>
  
  <hr>
  
  <p>I use Yeoman 'Webapp' generator and generated the scaffold app.</p>
  
  <p>I installed backbone, marionette, text, underscore, and etc via <code>bower install</code>
  I modified <code>bower.json</code> by removing <code>dependencies</code> and left only <code>"requirejs": "~2.1.16"</code> on <code>dependencies</code>. (<code>devDependencies</code> is empty)</p>
  
  <p>because I use <code>[2][grunt-wiredep]</code>, everything is automatically loaded <code>bower_components</code> into <code>index.html</code>. 
  I modified <code>.bowerrc</code> to store dependencies at <code>app/scripts/vendor</code>.</p>
  
  <p>However, the problem is that I don't know how to successfully load them through ReuqireJS and not to load the vendors as script tags inside <code>index.html</code>.
  I have to write some tasks for RequireJS and r.js, but don't know how to achieve this goal ( I installed <code>grunt-contrib-requirejs</code> though )</p>
  
  <p>I want to follow the 4th method to make use of <code>r.js</code> at <a href="https://github.com/jrburke/requirejs/wiki/Patterns-for-separating-config-from-the-main-module" rel="nofollow">https://github.com/jrburke/requirejs/wiki/Patterns-for-separating-config-from-the-main-module</a>. but the issue I encountered was that RequireJS's documentation does suggest to not use <code>named module</code>, but <code>anonymous module</code>.
  I would like to hear various opinions about how I should approach.</p>
  
  <p>I really appreciate your help in advance!</p>