Nuxt/examples/custom-routes/nuxt.config.js

17 lines
482 B
JavaScript
Raw Normal View History

module.exports = {
2016-11-27 12:39:52 +00:00
build: {
vendor: ['axios']
2016-12-12 20:54:02 +00:00
},
generate: {
routeParams: {
'/users/:id': [{id: 1}, {id: 2}, {id: 3}, {id: 4}, {id: 5}],
2016-12-13 10:04:48 +00:00
'/posts/:slug': [{slug: 'foo'}, {slug: 'bar'}],
'/posts/:slug/comments': [{slug: 'foo'}, {slug: 'bar'}],
'/posts/:slug/:name': [{slug: 'foo', name: 'b'}, {slug: 'bar', name: 'a'}],
2016-12-12 20:54:02 +00:00
'/projects/:slug': [{slug: 'toto'}, {slug: 'titi'}, {slug: 'tutu'}]
}
2016-12-15 19:13:54 +00:00
},
2016-12-16 16:46:30 +00:00
transition: 'fade',
loading: false
}