Nuxt/test/fixtures/cli/cli.gen.config.js

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
}
}