Set color for debug module

This commit is contained in:
Sébastien Chopin 2016-12-15 18:48:31 +01:00
parent 970ac4cad8
commit b8ec7329f7
4 changed files with 4 additions and 0 deletions

View File

@ -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')

View File

@ -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'

View File

@ -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')

View File

@ -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')