xExekut3x

gulp fix

Nov 27th, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. gulp.task('reload', function() {
  2. browserSync.reload();
  3. });
  4.  
  5. gulp.task('serve', ['nodemon', 'css', 'js'], function() {
  6. browserSync.init({
  7. port: 5000,
  8. proxy: 'http://localhost:3000',
  9. browser: ['google-chrome']
  10. });
  11. gulp.watch('./src/css/**/*.styl', ['css']);
  12. gulp.watch('./src/js/**/*.js', ['js']);
  13. gulp.watch('./views/**/*.jade', ['reload']);
  14. });
Add Comment
Please, Sign In to add comment