grunt-web-server-rewrite
v0.1.1
Published
Simple Grunt plugin http server with rewrite options
Downloads
4
Maintainers
Readme
Grunt Web Server Rewrite
Install
npm install grunt-web-server-rewrite```
### Usage example:
In first step, create a file called `rewrite.json` where is folder root.
**rewrite.json**
```js
{
"pages": {
"/": "index.html"
}
}```
***In Gruntfile.js***
```js
'web-server-rewrite': {
config: {
port: 1234,
base: path + 'web_static/',
keeplive: false
}
}```
```js
grunt.loadNpmTasks('grunt-web-server-rewrite');