mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
17 lines
348 B
JavaScript
17 lines
348 B
JavaScript
module.exports = {
|
|
build: {
|
|
vendor: ['vue-i18n']
|
|
},
|
|
router: {
|
|
middleware: 'i18n'
|
|
},
|
|
plugins: [
|
|
// Will inject the plugin in the $root app and also in the context as `i18n`
|
|
{ src: '~plugins/i18n.js', injectAs: 'i18n' }
|
|
],
|
|
generate: {
|
|
routes: ['/', '/about', '/fr', '/fr/about']
|
|
},
|
|
loading: { color: 'cyan' },
|
|
}
|