Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
agragregra committed May 7, 2019
1 parent 3e7f270 commit 3197f37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if (gulpversion == 3) {

gulp.task('img', ['imgx1', 'imgx2']);

gulp.task('watch', ['styles', 'scripts', 'browser-sync', 'img'], function() {
gulp.task('watch', ['styles', 'scripts', 'img', 'browser-sync'], function() {
gulp.watch('app/'+syntax+'/**/*.'+syntax+'', ['styles']);
gulp.watch(['libs/**/*.js', 'app/js/common.js'], ['scripts']);
gulp.watch('app/*.html', ['code']);
Expand All @@ -110,14 +110,14 @@ if (gulpversion == 3) {
// If Gulp Version 4
if (gulpversion == 4) {

gulp.task('img', gulp.series('imgx1', 'imgx2'));
gulp.task('img', gulp.parallel('imgx1', 'imgx2'));

gulp.task('watch', function() {
gulp.watch('app/'+syntax+'/**/*.'+syntax+'', gulp.parallel('styles'));
gulp.watch(['libs/**/*.js', 'app/js/common.js'], gulp.parallel('scripts'));
gulp.watch('app/*.html', gulp.parallel('code'));
gulp.watch('app/img/_src/**/*', gulp.series('img'));
gulp.watch('app/img/_src/**/*', gulp.parallel('img'));
});
gulp.task('default', gulp.parallel('styles', 'scripts', 'browser-sync', 'img', 'watch'));
gulp.task('default', gulp.series('styles', 'scripts', 'img', 'browser-sync', 'watch'));

};

0 comments on commit 3197f37

Please sign in to comment.