The current README includes instructions to configure the connect task with a middleware to serve static files and make a directory browsable. However, connect 3.x, upon which grunt-contrib-connect > 0.11 depends, has moved the static and index middlewares to separate packages, breaking the API and the example given in the README.
This PR updates the README so that a working version of the connect task is added.
Feel free to modify the text as you see fit, but I think this information is important, because it took me some time to figure it out, and this time can be saved for other users.
The current README includes instructions to configure the
connect
task with a middleware to serve static files and make a directory browsable. However, connect 3.x, upon which grunt-contrib-connect > 0.11 depends, has moved thestatic
andindex
middlewares to separate packages, breaking the API and the example given in the README.This PR updates the README so that a working version of the connect task is added.
Feel free to modify the text as you see fit, but I think this information is important, because it took me some time to figure it out, and this time can be saved for other users.
Thanks!