mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
39 lines
739 B
JavaScript
39 lines
739 B
JavaScript
module.exports = {
|
|
router: {
|
|
base: '/test/',
|
|
extendRoutes (routes) {
|
|
routes.push({
|
|
name: 'about-bis',
|
|
path: '/about-bis',
|
|
component: '~pages/about.vue'
|
|
})
|
|
}
|
|
},
|
|
cache: true,
|
|
offline: true,
|
|
plugins: [
|
|
'~plugins/test.js',
|
|
{ src: '~plugins/offline.js', ssr: false },
|
|
{ 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'
|
|
}
|
|
},
|
|
css: [
|
|
{src: '~/assets/app.css'}
|
|
]
|
|
}
|