Nuxt/test/fixtures/error/nuxt.config.js
2018-02-27 00:18:36 +03:30

14 lines
275 B
JavaScript

module.exports = {
hooks(hook) {
hook('build:done', nuxt => {
throw new Error('hook error')
})
hook('error', ({message}, from) => {
console.log(`[${from}]: ${message}`) // eslint-disable-line no-console
})
},
build: {
stats: false
}
}