mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Add back error handler on nuxt-dev
This commit is contained in:
parent
14c67f935e
commit
d3cacd0e58
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user