mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
22 lines
420 B
JavaScript
22 lines
420 B
JavaScript
import consola from 'consola'
|
|
|
|
export default {
|
|
test: true,
|
|
buildDir: '.nuxt-generate/build',
|
|
generate: {
|
|
dir: '.nuxt-generate/generate'
|
|
},
|
|
hooks (hook) {
|
|
hook('generate:done', (generator, errors) => {
|
|
if (!errors || errors.length === 0) {
|
|
consola.log('Generated successfully')
|
|
} else {
|
|
consola.log('Generated failed')
|
|
}
|
|
})
|
|
},
|
|
build: {
|
|
terser: false
|
|
}
|
|
}
|