Nuxt/examples/vue-apollo/nuxt.config.js

13 lines
283 B
JavaScript
Raw Normal View History

2017-04-14 10:52:27 +00:00
module.exports = {
build: {
vendor: ['vue-apollo', 'apollo-client']
},
router: {
middleware: 'apollo'
},
plugins: [
// Will inject the plugin in the $root app and also in the context as `i18n`
{ src: '~plugins/apollo.js', injectAs: 'apolloProvider' }
]
}