Skip to content

Commit

Permalink
fix for #3197.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Apr 5, 2018
1 parent e4ee624 commit ba4aa6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/common/utils.js
Expand Up @@ -16,7 +16,13 @@ exports.loadNuxtConfig = argv => {
let options = {}

if (existsSync(nuxtConfigFile)) {
options = esm(nuxtConfigFile).default
options = esm(nuxtConfigFile)
if (!options) {
options = {}
}
if (options.default) {
options = options.default
}
} else if (argv['config-file'] !== 'nuxt.config.js') {
consola.fatal('Could not load config file: ' + argv['config-file'])
}
Expand Down

0 comments on commit ba4aa6d

Please sign in to comment.