mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-18 03:35:17 +00:00
16 lines
360 B
JavaScript
16 lines
360 B
JavaScript
export default {
|
|
buildDir: '.nuxt-generate/.build',
|
|
generate: {
|
|
dir: '.nuxt-generate/.generate'
|
|
},
|
|
hooks(hook) {
|
|
hook('generate:done', (generator, errors) => {
|
|
if (!errors || errors.length === 0) {
|
|
process.stdout.write('Generated successfully')
|
|
} else {
|
|
process.stderr.write('Generated failed')
|
|
}
|
|
})
|
|
}
|
|
}
|