mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-28 00:22:05 +00:00
18 lines
379 B
JavaScript
18 lines
379 B
JavaScript
|
import consola from 'consola'
|
||
|
|
||
|
export default {
|
||
|
buildDir: '.nuxt-generate/.build',
|
||
|
generate: {
|
||
|
dir: '.nuxt-generate/.generate'
|
||
|
},
|
||
|
hooks(hook) {
|
||
|
hook('generate:done', (generator, errors) => {
|
||
|
if (!errors || errors.length === 0) {
|
||
|
consola.success('Generated successfully')
|
||
|
} else {
|
||
|
consola.error('Generated failed')
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|