Skip to content

Instantly share code, notes, and snippets.

@phated
Created December 4, 2013 17:32
Show Gist options
  • Save phated/7791926 to your computer and use it in GitHub Desktop.
Save phated/7791926 to your computer and use it in GitHub Desktop.
gulp-task thoughts
var gulp = require('gulp');
var connect = require('connect');
module.exports = function(config){
var path = config.path || __dirname + '/public';
gulp.task('connect', function(){
connect().use(connect.static(path, config));
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment