From 0665b242055f19d56610d16de63d39f41fb37aaf Mon Sep 17 00:00:00 2001 From: Paul Kinlan Date: Mon, 30 Jun 2014 22:18:52 +0200 Subject: [PATCH] Close GH-217: Adds a gulp serve:dist command that uses the dist build process. Fixes #216. Fixes #215, Fixes #216 --- gulpfile.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 93c2f706..f9e93267 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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);