Nuxt/test/fixtures/with-config/nuxt.config.js
2017-03-24 18:54:54 +01:00

34 lines
630 B
JavaScript

module.exports = {
router: {
base: '/test/',
extendRoutes (routes) {
routes.push({
name: 'about-bis',
path: '/about-bis',
component: '~pages/about.vue'
})
}
},
cache: true,
plugins: [
'~plugins/test.js',
{ src: '~plugins/only-client.js', ssr: false }
],
loading: '~components/loading',
env: {
bool: true,
num: 23,
string: 'Nuxt.js'
},
build: {
publicPath: '/orion/',
analyze: {
analyzerMode: 'disabled',
generateStatsFile: true
},
extend (config, options) {
config.devtool = 'nosources-source-map'
}
}
}