gruntjs / grunt-contrib-connect

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

Allow combining global and task middleware #160

Closed LaurentGoderre closed 9 years ago

LaurentGoderre commented 9 years ago

Currently, if there is a global middleware sett and task specific one, the task specific overwrites the middleware instead of adding to the global one. Would it be possible to allow global and task specific middleware to co-exist?

LaurentGoderre commented 9 years ago

I have a feeling that it's not possible because of the way grunt works....

sindresorhus commented 9 years ago

I have a feeling that it's not possible because of the way grunt works....

That's correct. You can easily have the global array in a variable though and reuse it in the target options. It's just JS after all.

LaurentGoderre commented 9 years ago

Yeah good point...the fact that ours is coffee is distracting me