mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
67 lines
1.2 KiB
JavaScript
67 lines
1.2 KiB
JavaScript
module.exports = {
|
|
srcDir: __dirname,
|
|
router: {
|
|
base: '/test/',
|
|
middleware: 'noop',
|
|
extendRoutes (routes) {
|
|
return [
|
|
...routes,
|
|
{
|
|
name: 'about-bis',
|
|
path: '/about-bis',
|
|
component: '~/pages/about.vue'
|
|
}
|
|
]
|
|
}
|
|
},
|
|
transition: 'test',
|
|
offline: true,
|
|
plugins: [
|
|
'~/plugins/test.js',
|
|
{ src: '~/plugins/only-client.js', ssr: false }
|
|
],
|
|
loading: '~/components/loading',
|
|
env: {
|
|
bool: true,
|
|
num: 23,
|
|
string: 'Nuxt.js',
|
|
object: {
|
|
bool: true,
|
|
string: 'ok',
|
|
num2: 8.23,
|
|
obj: {
|
|
again: true
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
// extractCSS: true,
|
|
publicPath: '/orion/',
|
|
analyze: {
|
|
analyzerMode: 'disabled',
|
|
generateStatsFile: true
|
|
},
|
|
extend (config, options) {
|
|
return Object.assign({}, config, {
|
|
devtool: 'nosources-source-map'
|
|
})
|
|
}
|
|
},
|
|
css: [
|
|
{ src: '~/assets/app.css' }
|
|
],
|
|
render: {
|
|
http2: {
|
|
push: true
|
|
},
|
|
bundleRenderer: {
|
|
shouldPreload: (file, type) => {
|
|
return ['script', 'style', 'font'].includes(type)
|
|
}
|
|
},
|
|
static: {
|
|
maxAge: '1y'
|
|
}
|
|
}
|
|
}
|