ericclemmons / grunt-express-server

Grunt task for running an Express Server that works great with LiveReload + Watch/Regarde
MIT License
248 stars 64 forks source link

Output loses formatting #94

Open Climax777 opened 9 years ago

Climax777 commented 9 years ago

Hello

When using this to run my express server, all output from winston logging loses formatting such as boldness and color.

ericclemmons commented 9 years ago

I think that's the difference between this library doing .spawn, which inherits STDIO vs. doing .exec.

There are some caveats using one vs. the other, so the alternative would just need to be tested...

paulpflug commented 9 years ago

using spawn would preserve formatting you could use the snippet here: #2098 there is also the workaround to kill the child reliable

sebdah commented 9 years ago

I had the same problem, but setting grunt-express-server option background: false solves the problem.