Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. var gulp = require('gulp'),
  2. connect = require('gulp-connect');
  3.  
  4. gulp.task('connect', function() {
  5. console.log('[CONNECT]');
  6. connect.server({
  7. root: './app',
  8. livereload: true,
  9. port: 1337
  10. });
  11. });
  12.  
  13. gulp.task('html', function () {
  14. console.log('[HTML]');
  15. gulp.src('./app/*.html')
  16. .pipe(connect.reload());
  17. });
  18.  
  19. gulp.task('watch', function () {
  20. console.log('[WATCH]');
  21. gulp.watch(['./app/*.html'], ['html']);
  22. gulp.watch(['./app/*.js'], ['html']);
  23. });
  24.  
  25. gulp.task('default', ['connect', 'watch']);
  26.  
  27. /
  28. gulpfile.js
  29. app/
  30. index.html
  31.  
  32. GET http://localhost:1337/socket.io/?EIO=3&transport=polling&t=1416708866684-0 404 (Not Found)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement