Created
December 1, 2014 19:33
-
-
Save ianaya89/292c19ed873897b7c091 to your computer and use it in GitHub Desktop.
Using gulp as web server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install gulp -g && npm install --save-dev gulp-connect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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