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

32 lines
603 B
JavaScript
Raw Normal View History

2017-01-19 15:26:30 +00:00
const resolve = require('path').resolve
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',
component: resolve(__dirname, 'pages/about.vue')
})
}
2016-12-21 18:27:36 +00:00
},
cache: true,
2016-12-21 19:51:43 +00:00
plugins: ['~plugins/test.js'],
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-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
}