gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 146 forks source link

Incorrect https://github.com/gruntjs/grunt-contrib-connect#roll-your-own after upgrade #189

Closed SamuraiPrinciple closed 9 years ago

SamuraiPrinciple commented 9 years ago

Greetings,

I believe that the instructions in:

https://github.com/gruntjs/grunt-contrib-connect#roll-your-own

are no longer valid since version v0.11.0. I believe:

connect(connect.static('www-root')).listen(9001);

should be replaced with (once serve-static is added to packages.json):

serveStatic = require('serve-static'); connect(serveStatic('www-root')).listen(9001);

Or maybe there's a better solution?

jjosef commented 9 years ago

+1 is there a reason this was removed? It totally breaks typical Gruntfiles

vladikoff commented 9 years ago

@SamuraiPrinciple thanks for the issue. fixed in v0.11.2