Adding live reload triggers to JS and CSS changes.

This commit is contained in:
Julien Melissas
2015-01-16 02:07:20 -05:00
parent 4ed15a97d9
commit e4a03682b3

View File

@@ -42,7 +42,8 @@ var cssTasks = function(filename) {
.pipe(function () { .pipe(function () {
return $.if(mapsEnabled, $.sourcemaps.write('.')); return $.if(mapsEnabled, $.sourcemaps.write('.'));
}) })
.pipe(gulp.dest, path.dist + 'styles')(); .pipe(gulp.dest, path.dist + 'styles')
.pipe($.livereload)();
}; };
gulp.task('styles', ['wiredep'], function() { gulp.task('styles', ['wiredep'], function() {
@@ -76,7 +77,8 @@ var jsTasks = function(filename) {
.pipe(function () { .pipe(function () {
return $.if(mapsEnabled, $.sourcemaps.write('.')); return $.if(mapsEnabled, $.sourcemaps.write('.'));
}) })
.pipe(gulp.dest, path.dist + 'scripts')(); .pipe(gulp.dest, path.dist + 'scripts')
.pipe($.livereload)();
}; };
gulp.task('scripts', ['jshint'], function() { gulp.task('scripts', ['jshint'], function() {