From 2cc88acbe97a6a76b05dc2a7a6256001ff677248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 10 Nov 2016 15:24:22 +0100 Subject: [PATCH] Add DEBUG flag when using the bin --- bin/nuxt-build | 3 +++ bin/nuxt-dev | 3 +++ bin/nuxt-generate | 3 +++ 3 files changed, 9 insertions(+) diff --git a/bin/nuxt-build b/bin/nuxt-build index 780c3fe3d8..fe53759e30 100755 --- a/bin/nuxt-build +++ b/bin/nuxt-build @@ -1,5 +1,8 @@ #!/usr/bin/env node +// Show logs +process.env.DEBUG = 'nuxt:*' + const fs = require('fs') const Nuxt = require('../') const { resolve } = require('path') diff --git a/bin/nuxt-dev b/bin/nuxt-dev index d772cd4b67..b2ff11c1da 100755 --- a/bin/nuxt-dev +++ b/bin/nuxt-dev @@ -1,5 +1,8 @@ #!/usr/bin/env node +// Show logs +process.env.DEBUG = 'nuxt:*' + const fs = require('fs') const Nuxt = require('../') const Server = require('../lib/server') diff --git a/bin/nuxt-generate b/bin/nuxt-generate index a7daf45f49..4c49bf8b1e 100755 --- a/bin/nuxt-generate +++ b/bin/nuxt-generate @@ -1,5 +1,8 @@ #!/usr/bin/env node +// Show logs +process.env.DEBUG = 'nuxt:*' + const fs = require('fs') const Nuxt = require('../') const { resolve } = require('path')