title: grunt-usemin and multiple path on index.html
body: <p>First of all, sorry for my english and sorry to be new with grunt.</p>
  
  <p>Now, my question ;-)</p>
  
  <p>I have 2 directories for my Javascript files (/components and /src/main/javascript) included on the index.html which is on /src/main/html. Imagine my gruntfile on the / directory.</p>
  
  <p>I would like to find the simpliest way to have an only .js for all my javascript files on the /target/gui/javascript directory.</p>
  
  <p>But before that, I'm ok to have one file by javascript sources directories. But, I have a problem when I do the following comment on the index.html.</p>
  
  <pre><code>&lt;!-- build:js(components/angular) javascript/components.js --&gt;
      &lt;script src="../../../components/angular/angular.js"&gt;&lt;/script&gt;
  &lt;!-- endbuild --&gt;
  &lt;!-- build:js(src/main/javascript) javascript/app.js --&gt;
      &lt;script src="../javascript/app.js"&gt;&lt;/script&gt;
      &lt;script src="../javascript/lists/services/lists.js"&gt;&lt;/script&gt;
      &lt;script src="../javascript/lists/controllers/listsctrl.js"&gt;&lt;/script&gt;
      &lt;script src="../javascript/lists/controllers/listctrl.js"&gt;&lt;/script&gt;
  &lt;!-- endbuild --&gt;
  </code></pre>
  
  <p>My problem is that <strong>my components.js is empty</strong>. I can see a strange thing when I launch my grunt build :</p>
  
  <pre><code>    Found a block:
      &lt;!-- build:js(components/angular) javascript/components.js --&gt;
      &lt;script src="../../../components/angular/angular.js"&gt;&lt;/script&gt;
      &lt;!-- endbuild --&gt;
      Updating config with the following assets:
      - ../components/angular/angular.js
  </code></pre>
  
  <p>Updating with ../components/angular/angular.js ? Not components/angular/angular.js ?
  I don't understand.
  I did the same thing with my CSS files, and it does what I want :</p>
  
  <pre><code>    &lt;!-- build:css(components/bootstrap/css) css/components.css --&gt;
      &lt;link rel="stylesheet" href="../../../components/bootstrap/css/bootstrap.css" type="text/css" /&gt;
      &lt;link rel="stylesheet" href="../../../components/bootstrap/css/bootstrap-responsive.css" type="text/css" /&gt;
      &lt;!-- endbuild --&gt;
      &lt;!-- build:css(src/main/css) css/app.css --&gt;
      &lt;link rel="stylesheet" href="../css/shoppinglist.css" type="text/css" /&gt;
      &lt;!-- endbuild --&gt;
  </code></pre>
  
  <p>I can see </p>
  
  <pre><code>Found a block:
      &lt;!-- build:css(components/bootstrap/css) css/components.css --&gt;
      &lt;link rel="stylesheet" href="../../../components/bootstrap/css/bootstrap.css" type="text/css" /&gt;
      &lt;link rel="stylesheet" href="../../../components/bootstrap/css/bootstrap-responsive.css" type="text/css" /&gt;
      &lt;!-- endbuild --&gt;
  Updating config with the following assets:
      - components/bootstrap/css/bootstrap.css
      - components/bootstrap/css/bootstrap-responsive.css
  </code></pre>
  
  <p>So, for the CSS, grunt understand the path I want ?</p>
  
  <p>What I have on my Gruntfile ?</p>
  
  <pre><code>    (...)
       dest: {
          buildRoot : 'target',
          guiRoot   : 'target/gui',
          html: {
             index:    'target/gui/index.html',
             partials: 'target/gui/partials'
          },
          res:        'target/gui/assets'
      },
      useminPrepare: {
        html: '&lt;%= dest.html.index %&gt;'
      },
  
      usemin: {
        html: ['&lt;%= dest.html.index %&gt;'],
        options: {
          dirs: ['&lt;%= dest.guiRoot %&gt;']
        }
      }
      (...)
  </code></pre>
  
  <p>I use grunt build with :</p>
  
  <pre><code>  grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.loadNpmTasks('grunt-usemin');
  
  
      grunt.registerTask('build',   ['clean', 'copy:html', 'copy:res', 'copy:server', 'copy:heroku', 'useminPrepare', 'concat', 'uglify', 'cssmin', 'usemin']);
  </code></pre>
  
  <p>Someone can help me ?</p>
  
  <p>Best regards,</p>
  
  <p>Manu</p>