Add back error handler on nuxt-dev

This commit is contained in:
Sebastien Chopin 2017-07-03 13:53:37 +02:00
parent 14c67f935e
commit d3cacd0e58

View File

@ -54,6 +54,11 @@ const nuxtConfigFile = resolve(rootDir, argv['config-file'])
const nuxtConfig = loadNuxtConfig() const nuxtConfig = loadNuxtConfig()
_.defaultsDeep(nuxtConfig, { watchers: { chokidar: { ignoreInitial: true } } }) _.defaultsDeep(nuxtConfig, { watchers: { chokidar: { ignoreInitial: true } } })
// Fail if an error happened
process.on('unhandledRejection', function (err) {
throw err
})
// Start dev // Start dev
let dev = startDev() let dev = startDev()