mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
27 lines
496 B
JavaScript
27 lines
496 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
generate: {
|
|
routes: [
|
|
'/users/1',
|
|
'/users/2',
|
|
{ route: '/users/3', payload: { id: 3000 } }
|
|
],
|
|
interval: 200,
|
|
subFolders: true
|
|
},
|
|
modulesDir: path.join(__dirname, '..', '..', '..', 'node_modules'),
|
|
hooks: {
|
|
ready(nuxt) {
|
|
nuxt.__hook_called__ = true
|
|
},
|
|
bad: null,
|
|
'': true
|
|
},
|
|
transition: false,
|
|
build: {
|
|
scopeHoisting: true,
|
|
postcss: [require('postcss-cssnext')()]
|
|
}
|
|
}
|