mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Add missing comments
This commit is contained in:
parent
c3bcd05295
commit
fbd1c609fd
@ -16,6 +16,8 @@ if (process.argv.indexOf('--analyze') !== -1 || process.argv.indexOf('-a') !== -
|
|||||||
}
|
}
|
||||||
|
|
||||||
var nuxtConfigFileName = 'nuxt.config.js'
|
var nuxtConfigFileName = 'nuxt.config.js'
|
||||||
|
|
||||||
|
// --config-file option
|
||||||
var indexOfConfig = false
|
var indexOfConfig = false
|
||||||
if (process.argv.indexOf('--config-file') !== -1) {
|
if (process.argv.indexOf('--config-file') !== -1) {
|
||||||
indexOfConfig = process.argv.indexOf('--config-file')
|
indexOfConfig = process.argv.indexOf('--config-file')
|
||||||
@ -28,6 +30,7 @@ if (indexOfConfig !== false) {
|
|||||||
process.argv = without(process.argv, '--config-file', '-c', nuxtConfigFileName)
|
process.argv = without(process.argv, '--config-file', '-c', nuxtConfigFileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Root directory parameter
|
||||||
var rootDir = resolve(process.argv.slice(2)[0] || '.')
|
var rootDir = resolve(process.argv.slice(2)[0] || '.')
|
||||||
var nuxtConfigFilePath = resolve(rootDir, nuxtConfigFileName)
|
var nuxtConfigFilePath = resolve(rootDir, nuxtConfigFileName)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user