Close GH-217: Adds a gulp serve:dist command that uses the dist build process. Fixes #216. Fixes #215, Fixes #216

master
Paul Kinlan 2014-06-30 22:18:52 +02:00 committed by Sindre Sorhus
parent b768937868
commit 0665b24205
1 changed files with 9 additions and 0 deletions

View File

@ -145,6 +145,15 @@ gulp.task('serve', function () {
gulp.watch(['app/images/**/*'], reload);
});
// Build and serve the output from the dist build
gulp.task('serve:dist', ['default'], function() {
browserSync.init(null, {
server: {
baseDir: "./dist/"
}
});
});
// Build Production Files, the Default Task
gulp.task('default', ['clean'], function (cb) {
runSequence('styles', ['jshint', 'html', 'images', 'copy'], cb);