How to get gulp-html-minifier's output into gulp-inject-stringified-html?
<p>I'm trying to use these two gulp plugins together:</p>

<ul>
<li><a href="https://www.npmjs.com/package/gulp-html-minifier" rel="nofollow">gulp-html-minifier</a></li>
<li><a href="https://www.npmjs.com/package/gulp-inject-stringified-html" rel="nofollow">gulp-inject-stringified-html</a></li>
</ul>

<p>Or put differently, I'm trying to inject the contents of files containing html fragments into my javascript files after they're minified.</p>

<p>When I'm trying to run a straight up <code>gulp</code> build I get this:</p>

<blockquote>
  <p><code>Error: ENOENT: no such file or directory, open 'C:\path\to\.temp\template.html'</code></p>
</blockquote>

<p>Here's a <strong>repro</strong> of my situation. My folder structure:</p>

<pre class="lang-none prettyprint-override"><code>/src/app.js
/src/template.html
/gulpfile.js
/package.json
</code></pre>

<p>My <code>gulpfile.js</code>:</p>

<pre><code>var gulp = require('gulp');
var injectHtml = require('gulp-inject-stringified-html');
var htmlmin = require('gulp-html-minifier');

gulp.task('minify', [], function() {
    gulp.src('src/*.html')
        .pipe(htmlmin())
        .pipe(gulp.dest('.temp'));
});

gulp.task('default', ['minify'], function() {
    gulp.src('src/*.js')
        .pipe(injectHtml())
        .pipe(gulp.dest('.build'));
});
</code></pre>

<p>The <code>template.html</code> file:</p>

<pre class="lang-html prettyprint-override"><code>&lt;div&gt;My Template&lt;/div&gt;
</code></pre>

<p>The <code>app.js</code> file:</p>

<pre><code>var html = { gulp_inject: "../.temp/template.html" };
</code></pre>

<p>Now, if I run <code>minify</code> manually first, things will work as expected. From this I speculate I'm not using Gulp correctly. I reckon I'd need to pipe the result of <code>htmlmin</code> into the <code>injectHtml</code> method. But I fail to see how.</p>

<p>How can I get these two plugins to play together nicely?</p>