Gulp: Read script tags from footer
<p>I'm trying to accomplish the following with Gulp:</p>

<ol>
<li>Read file <code>footer.html</code> and parse all the paths in <code>&lt;script src="</code> tags - using <code>gulp-dom-src</code>;</li>
<li>Pipe those paths into <code>contact</code>;</li>
<li><code>uglify</code> everything;</li>
</ol>

<p>The last steps are easy, however I'm stuck with the first step. My current code is:</p>

<pre><code>var domSrc = require("gulp-dom-src"),
concat      = require("gulp-concat"),
uglify      = require("gulp-uglify");

var footerFile = "Footer/View-en.html";

gulp.task("deploy", function(){
    domSrc({ file: footerFile, selector: "script", attribute: "src" })  
    .pipe(concat("script.min.js"))
    .pipe(uglify())
    .pipe(gulp.dest("Dist/Resources/"))
});
</code></pre>

<p>If I try to debug the pipe using <code>.pipe(debug({title: "pipe:"}));</code> it appears to be empty, any reason why? Any other recommended packages to accomplish the same?</p>

<p>Thank you.</p>