title: Usemin "Different sources attempting to write to the same destination"
body: <p>I have an AngularJS app I'm working on usemin tasks for.  This app has 2 html pages, both include a block minified into a common.js and the other pages include js minified for those specific pages.</p>
  
  <p>page1.html</p>
  
  <pre><code>&lt;!-- build:js scripts/common.js --&gt;
  &lt;!-- bower:js --&gt;
  &lt;script src="a.js"&gt;&lt;/script&gt;
  &lt;script src="b.js"&gt;&lt;/script&gt;
  &lt;!-- endbower --&gt;
  &lt;!-- endbuild --&gt;
  
  &lt;!-- build:js scripts/page1.js --&gt;
  &lt;!-- bower:js --&gt;
  &lt;script src="c.js"&gt;&lt;/script&gt;
  &lt;script src="d.js"&gt;&lt;/script&gt;
  &lt;!-- endbower --&gt;
  &lt;!-- endbuild --&gt;
  </code></pre>
  
  <p>page2.html</p>
  
  <pre><code>&lt;!-- build:js scripts/common.js --&gt;
  &lt;!-- bower:js --&gt;
  &lt;script src="a.js"&gt;&lt;/script&gt;
  &lt;script src="b.js"&gt;&lt;/script&gt;
  &lt;!-- endbower --&gt;
  &lt;!-- endbuild --&gt;
  
  &lt;!-- build:js scripts/page2.js --&gt;
  &lt;!-- bower:js --&gt;
  &lt;script src="e.js"&gt;&lt;/script&gt;
  &lt;script src="f.js"&gt;&lt;/script&gt;
  &lt;!-- endbower --&gt;
  &lt;!-- endbuild --&gt;
  </code></pre>
  
  <p>Gruntfile.js</p>
  
  <pre><code>useminPrepare: {
      html: ['&lt;%= yeoman.app %&gt;/page1.html', '&lt;%= yeoman.app %&gt;/page2.html'],
          options: {
              dest: '&lt;%= yeoman.dist %&gt;'
          }
      },
  </code></pre>
  
  <p>Usemin is upset because common.js is defined in both files with the error: Fatal error: Different sources attempting to write to the same destination:.  I (think) I need to include both page1 and page2 in the useminPrepare in order to correctly get page1.js and page2.js generated.  How do people solve this issue?</p>