ericclemmons / grunt-express-server

Grunt task for running an Express Server that works great with LiveReload + Watch/Regarde

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output loses formatting

Climax777 opened this issue · comments

Hello

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

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...

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

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