title: Uglifying for require.js with shim doesn't work on play2 with CoffeeScript
body: <p>I work on Play 2.1.2 project, using Angular.js, CoffeeScript, require.js and bower to organize front-end.
  With bower, I use shim in my <code>/app/assets/javascripts/main.coffee</code> file.
  Then I deploy using <code>play clean stage</code> and running <code>target/start</code>.</p>
  
  <p>The problem is: during <code>stage</code> phase, Play doesn't uglify resources.
  In <code>Build.scala</code>:</p>
  
  <pre><code>val main = play.Project(appName, appVersion, appDependencies).settings(
    requireJs += "main",
    requireJsShim += "main.js"
  )
  </code></pre>
  
  <p>Then after uglyfying css in stage:</p>
  
  <pre><code>Tracing dependencies for: main
  Error: Load timeout for modules: angular-bootstrap,angular
  http://requirejs.org/docs/errors.html#timeout
  In module tree:
      main
        jquery
  
  Error: Load timeout for modules: angular-bootstrap,angular
  http://requirejs.org/docs/errors.html#timeout
  In module tree:
      main
        jquery
  
  [info] RequireJS optimization finished.
  </code></pre>
  
  <p>So nothing was uglified. In <code>main.coffee</code>:</p>
  
  <pre><code>require.config
    paths:
      jquery: "lib/jquery/jquery"
      angular: "lib/angular/angular"
      ...
    shim:
      angular: {deps: ["jquery"], exports: "angular"}
      ...
  
  define [
    "angular-bootstrap"
    "angular"
    ...
  ], -&gt;
    app = angular.module "app"
    ...
    app
  </code></pre>
  
  <p>It works perfectly on client side, all paths are correct and so on.
  <code>requireJsShim += "main.js"</code> also looks correct: it looks like require.js optimization takes place after compiling assets, so <code>main.coffee</code> or just <code>main</code> doesn't work.</p>
  
  <p>Any ideas what are the roots of the problem? Have anyone faced it before?</p>