From b8ec7329f7ec844cc7a55bc356f50b5eb652a605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 15 Dec 2016 18:48:31 +0100 Subject: [PATCH] Set color for debug module --- bin/nuxt-dev | 1 + lib/app/server.js | 1 + lib/build/index.js | 1 + lib/render.js | 1 + 4 files changed, 4 insertions(+) diff --git a/bin/nuxt-dev b/bin/nuxt-dev index de6b5af1dd..a54b99f9ba 100755 --- a/bin/nuxt-dev +++ b/bin/nuxt-dev @@ -5,6 +5,7 @@ process.env.DEBUG = 'nuxt:*' var _ = require('lodash') var debug = require('debug')('nuxt:build') +debug.color = 2 // force green color var fs = require('fs') var Nuxt = require('../') var chokidar = require('chokidar') diff --git a/lib/app/server.js b/lib/app/server.js index ea7e4a74e4..a5af32e6a1 100644 --- a/lib/app/server.js +++ b/lib/app/server.js @@ -1,6 +1,7 @@ 'use strict' const debug = require('debug')('nuxt:render') +debug.color = 4 // force blue color import Vue from 'vue' import { stringify } from 'querystring' import { omit } from 'lodash' diff --git a/lib/build/index.js b/lib/build/index.js index 70f41a74a8..1b57fed562 100644 --- a/lib/build/index.js +++ b/lib/build/index.js @@ -1,6 +1,7 @@ 'use strict' const debug = require('debug')('nuxt:build') +debug.color = 2 // force green color const _ = require('lodash') const co = require('co') const chokidar = require('chokidar') diff --git a/lib/render.js b/lib/render.js index f88fb77e76..c6850d6d81 100644 --- a/lib/render.js +++ b/lib/render.js @@ -1,4 +1,5 @@ const debug = require('debug')('nuxt:render') +debug.color = 4 // force blue color const co = require('co') const { urlJoin } = require('./utils') const { getContext } = require('./utils')