grunt-http-server
![Dependency Status](https://gemnasium.com/divhide/grunt-http-server.svg)
![NPM Stats](https://nodei.co/npm/grunt-http-server.png?downloads=true&downloadRank=true&stars=true)
Description
This grunt task provides you with an http server to serve your static files that you can
hook in your grunt build.
Full documentation and examples available on:
divhide.com/node-grunt-http-server-1-x/.
Install
npm install grunt-http-server
Example
grunt.initConfig({
'http-server': {
'dev': {
root: <path>,
port: 8282,
host: "0.0.0.0",
cache: <sec>,
showDir : true,
autoIndex: true,
ext: "html",
runInBackground: true|false,
logFn: function(req, res, error) { },
proxy: "http://someurl.com",
https: {
cert: "cert.pem",
key : "key.pem"
},
openBrowser : false,
customPages: {
"/readme": "README.md",
"/readme.html": "README.html"
}
}
}
});
grunt.loadNpmTasks('grunt-http-server');
Authors
License
Copyright (c) 2015 Oscar Brito aetheon@gmail.com, contributors.
Released under the MIT license