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

14 lines
275 B
JavaScript
Raw Normal View History

2018-01-27 15:29:42 +00:00
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
}
}