Skip to content

Instantly share code, notes, and snippets.

@dhoko
Last active August 29, 2015 14:01
Show Gist options
  • Save dhoko/eb6375f6a099df8ab139 to your computer and use it in GitHub Desktop.
Save dhoko/eb6375f6a099df8ab139 to your computer and use it in GitHub Desktop.
// Concatenate your partials and append them to index.html
gulp.task('templates', function() {
var stream = streamqueue({objectMode: true});
stream.queue(gulp.src([
'./src/layout/header.html',
'./src/layout/body.html'
]));
stream.queue(gulp.src('./src/partials/**/*.html').pipe(partials()));
stream.queue(gulp.src('./src/layout/footer.html'));
return stream.done()
.pipe(concat('index.html'))
.pipe(gulp.dest('./build'))
.pipe(livereload(server));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment