mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 18:37:21 +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')
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|