From fbd1c609fd3dfe51f564bd380d813b7c6192a6e0 Mon Sep 17 00:00:00 2001 From: Pierre RAMBAUD Date: Wed, 15 Mar 2017 15:14:16 +0100 Subject: [PATCH] Add missing comments --- bin/nuxt-build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/nuxt-build b/bin/nuxt-build index a1529fa933..50dbc246b8 100755 --- a/bin/nuxt-build +++ b/bin/nuxt-build @@ -16,6 +16,8 @@ if (process.argv.indexOf('--analyze') !== -1 || process.argv.indexOf('-a') !== - } var nuxtConfigFileName = 'nuxt.config.js' + +// --config-file option var indexOfConfig = false if (process.argv.indexOf('--config-file') !== -1) { indexOfConfig = process.argv.indexOf('--config-file') @@ -28,6 +30,7 @@ if (indexOfConfig !== false) { process.argv = without(process.argv, '--config-file', '-c', nuxtConfigFileName) } +// Root directory parameter var rootDir = resolve(process.argv.slice(2)[0] || '.') var nuxtConfigFilePath = resolve(rootDir, nuxtConfigFileName)