gulp-serve-spa
v0.3.0
Published
Serve your assets
Downloads
4
Readme
gulp-serve
Provide connect-server functionality, using connect.static
Install
Install with npm
npm i --save-dev gulp-serve
Usage
var gulp = require('gulp');
var serve = require('gulp-serve');
gulp.task('serve', serve('public'));
gulp.task('serve-build', serve(['public', 'build']));
gulp.task('serve-prod', serve({
root: ['public', 'build'],
port: 80,
middleware: function(req, res) {
// custom optional middleware
}
}));