Skip to content

Instantly share code, notes, and snippets.

@ianaya89
Created December 1, 2014 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianaya89/292c19ed873897b7c091 to your computer and use it in GitHub Desktop.
Save ianaya89/292c19ed873897b7c091 to your computer and use it in GitHub Desktop.
Using gulp as web server
npm install gulp -g && npm install --save-dev gulp-connect
var gulp = require('gulp'),
connect = require('gulp-connect');
gulp.task('webserver', function() {
connect.server({
livereload: true,
port: 80,
host: 'gulp.dev'
});
});
gulp.task('serve', ['webserver']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment