Nuxt/test/fixtures/with-config/nuxt.config.js

34 lines
630 B
JavaScript
Raw Normal View History

2016-12-21 14:03:37 +00:00
module.exports = {
router: {
2017-01-19 15:26:30 +00:00
base: '/test/',
extendRoutes (routes) {
routes.push({
name: 'about-bis',
path: '/about-bis',
2017-01-28 19:41:31 +00:00
component: '~pages/about.vue'
2017-01-19 15:26:30 +00:00
})
}
2016-12-21 18:27:36 +00:00
},
cache: true,
2017-03-24 17:35:30 +00:00
plugins: [
'~plugins/test.js',
{ src: '~plugins/only-client.js', ssr: false }
],
2016-12-21 19:51:43 +00:00
loading: '~components/loading',
env: {
bool: true,
num: 23,
string: 'Nuxt.js'
2016-12-27 14:04:42 +00:00
},
2016-12-27 14:24:52 +00:00
build: {
2017-03-24 17:35:30 +00:00
publicPath: '/orion/',
2017-01-23 16:55:39 +00:00
analyze: {
analyzerMode: 'disabled',
generateStatsFile: true
},
2016-12-27 14:24:52 +00:00
extend (config, options) {
config.devtool = 'nosources-source-map'
}
2016-12-21 19:51:43 +00:00
}
2016-12-21 14:03:37 +00:00
}