Permalink
Browse files

Modified gulpfile.js for devide default task and watch task

  • Loading branch information...
blue-goheimochi committed Feb 27, 2015
1 parent 8fcb7cd commit cfd9b308fe6680f9bf4d8bc9dced462ace8c26dd
Showing with 11 additions and 7 deletions.
  1. +11 −7 gulpfile.js
View
@@ -12,6 +12,10 @@ gulp.task('browser-sync', function(){
});
});
gulp.task('bs-reload', function() {
browserSync.reload();
});
gulp.task('minify-css', function () {
gulp.src(['./resource/css/app.css'])
.pipe(minifyCSS())
@@ -26,11 +30,11 @@ gulp.task('compress', function () {
);
});
gulp.task('default', ['browser-sync','minify-css','compress'], function(){
gulp.task('watch', ['browser-sync','minify-css','compress'], function () {
gulp.watch([
'./public_html/css/*.css',
'./public_html/js/*.js'
], function(){
browserSync.reload();
});
});
'./resource/css/*.css',
'./resource/js/*.js'
], ['minify-css','compress', 'bs-reload']);
});
gulp.task('default', ['minify-css','compress']);

0 comments on commit cfd9b30

Please sign in to comment.