Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gulp = require('gulp'),
- connect = require('gulp-connect');
- gulp.task('connect', function() {
- console.log('[CONNECT]');
- connect.server({
- root: './app',
- livereload: true,
- port: 1337
- });
- });
- gulp.task('html', function () {
- console.log('[HTML]');
- gulp.src('./app/*.html')
- .pipe(connect.reload());
- });
- gulp.task('watch', function () {
- console.log('[WATCH]');
- gulp.watch(['./app/*.html'], ['html']);
- gulp.watch(['./app/*.js'], ['html']);
- });
- gulp.task('default', ['connect', 'watch']);
- /
- gulpfile.js
- app/
- index.html
- 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