diff --git a/src/index.js b/src/index.js index c562a3f..1be7b7d 100644 --- a/src/index.js +++ b/src/index.js @@ -32,15 +32,16 @@ module.exports = function (options) { procOptions = cloneObjWithoutProps(options.watch, ['path']); } + // pipe all outputs and preserve colors + procOptions = procOptions || {}; + procOptions.stdio = 'inherit'; + /** * start the child process */ function start() { proc = spawn(procCommand, procArgs, procOptions); - proc.stdout.pipe(process.stdout); - proc.stderr.pipe(process.stderr); - var onClose = function (code) { if (!restarting) { process.exit(code);