Adding live reload triggers to JS and CSS changes.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user