I have a gulpfile where I am injecting files into an appcache manifest in this manner:
var cachedFiles = gulp.src('**', {read: false, cwd: 'build'});
gulp.src('src/*.appcache', {base: 'src'})
.pipe($.inject(cachedFiles, {
addRootSlash: false,
starttag: '# inject',
endtag: '# endInject',
transform: function(path) {
return path;
}
}))
.pipe(gulp.dest(deployPath));
This approach works somewhat, but it also includes folders:
# inject
index.html
app # <-- I don't want this
app/20_main.js
app/filters.js
view # <-- I don't want this
view/style.css
How can I exclude folders themselves, while still including the files inside them? When I search online, most results are about excluding folders along with their contents.