Nuxt/test/fixtures/error/nuxt.config.js

14 lines
273 B
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
export default {
2018-01-27 15:29:42 +00:00
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
}
}