parent
f4b1aa9e5a
commit
de353a0163
|
@ -31,10 +31,10 @@ var reload = browserSync.reload;
|
|||
// Lint JavaScript
|
||||
gulp.task('jshint', function () {
|
||||
return gulp.src('app/scripts/**/*.js')
|
||||
.pipe(reload({stream: true, once: true}))
|
||||
.pipe($.jshint())
|
||||
.pipe($.jshint.reporter('jshint-stylish'))
|
||||
.pipe($.if(!browserSync.active, $.jshint.reporter('fail')))
|
||||
.pipe(reload({stream: true}));
|
||||
.pipe($.if(!browserSync.active, $.jshint.reporter('fail')));
|
||||
});
|
||||
|
||||
// Optimize Images
|
||||
|
|
Loading…
Reference in New Issue