This commit is contained in:
Sébastien Chopin 2017-06-18 13:36:03 +02:00
parent 18fd47ee61
commit fb9b2b5e63

View File

@ -76,7 +76,7 @@ function listenOnConfigChanges (nuxt, server) {
const build = _.debounce(() => {
debug('[nuxt.config.js] changed')
delete require.cache[nuxtConfigFile]
const options = {}
let options = {}
if (fs.existsSync(nuxtConfigFile)) {
try {
options = require(nuxtConfigFile)