#javascript #nodejs grunt-http-server v0.0.5 released

Oscar Brito


Before I go on an one week holidays I've updated the 'grunt-http-server' NPM package to version 0.0.5. This new version allow dynamic configuration of the server port specified by a function.


grunt.initConfig({

'http-server': {

'dev': {

// the server root directory
root: ,

port: 8282,
// port: function() { return 8282; }

host: "127.0.0.1",

cache: ,
showDir : true,
autoIndex: true,
defaultExt: "html",

// run in parallel with other tasks
runInBackground: true|false

}

}
});


The idea and pull request came from bryanisimo which I thank.

If you got any ideas I'll be more than happy to merge them in the repository.

Holidays mode now turned on :) 3 hours from Cork to Dublin plus 2 hours flight.... Thank god I've got Linux Journal to read.

Oscar






Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.