2018-03-16 16:12:06 +00:00
|
|
|
import path from 'path'
|
2017-12-12 10:25:41 +00:00
|
|
|
|
2018-03-16 16:12:06 +00:00
|
|
|
export default {
|
2016-12-21 19:51:43 +00:00
|
|
|
generate: {
|
2017-03-17 17:52:46 +00:00
|
|
|
routes: [
|
2018-03-18 23:41:14 +00:00
|
|
|
// TODO: generate with {build: false} does not scans pages!
|
|
|
|
'/stateless',
|
|
|
|
'/css',
|
|
|
|
'/stateful',
|
|
|
|
'/head',
|
|
|
|
'/async-data',
|
|
|
|
'/validate',
|
|
|
|
'/redirect',
|
|
|
|
|
2017-03-17 17:52:46 +00:00
|
|
|
'/users/1',
|
|
|
|
'/users/2',
|
2017-05-30 10:00:31 +00:00
|
|
|
{ route: '/users/3', payload: { id: 3000 } }
|
2017-04-24 08:30:05 +00:00
|
|
|
],
|
2017-11-16 13:33:19 +00:00
|
|
|
interval: 200,
|
|
|
|
subFolders: true
|
2017-10-31 11:33:15 +00:00
|
|
|
},
|
2018-03-18 19:31:32 +00:00
|
|
|
head: {
|
|
|
|
titleTemplate: (titleChunk) => {
|
|
|
|
return titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js'
|
|
|
|
}
|
|
|
|
},
|
2017-12-12 10:25:41 +00:00
|
|
|
modulesDir: path.join(__dirname, '..', '..', '..', 'node_modules'),
|
2017-10-31 11:33:15 +00:00
|
|
|
hooks: {
|
|
|
|
ready(nuxt) {
|
|
|
|
nuxt.__hook_called__ = true
|
|
|
|
},
|
|
|
|
bad: null,
|
|
|
|
'': true
|
2017-11-16 10:56:41 +00:00
|
|
|
},
|
2017-11-21 07:38:12 +00:00
|
|
|
transition: false,
|
|
|
|
build: {
|
2017-12-08 10:10:57 +00:00
|
|
|
scopeHoisting: true,
|
2018-06-01 21:11:55 +00:00
|
|
|
postcss: [
|
|
|
|
require('postcss-preset-env')()
|
|
|
|
]
|
2017-11-21 07:38:12 +00:00
|
|
|
}
|
2016-12-21 19:51:43 +00:00
|
|
|
}
|