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

49 lines
864 B
JavaScript
Raw Normal View History

2016-12-21 14:03:37 +00:00
module.exports = {
2017-05-21 17:18:26 +00:00
srcDir: __dirname,
2016-12-21 14:03:37 +00:00
router: {
2017-01-19 15:26:30 +00:00
base: '/test/',
2017-05-21 17:18:26 +00:00
middleware: 'noop',
2017-01-19 15:26:30 +00:00
extendRoutes (routes) {
routes.push({
name: 'about-bis',
path: '/about-bis',
2017-07-06 22:27:27 +00:00
component: '~/pages/about.vue'
2017-01-19 15:26:30 +00:00
})
}
2016-12-21 18:27:36 +00:00
},
2017-05-21 17:18:26 +00:00
transition: 'test',
2017-04-17 13:58:18 +00:00
offline: true,
2017-03-24 17:35:30 +00:00
plugins: [
2017-07-27 14:50:24 +00:00
'~/plugins/test.js',
2017-07-06 22:27:27 +00:00
{ src: '~/plugins/only-client.js', ssr: false }
2017-03-24 17:35:30 +00:00
],
2017-07-06 22:27:27 +00:00
loading: '~/components/loading',
2016-12-21 19:51:43 +00:00
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-05-11 11:37:21 +00:00
extractCSS: true,
2017-03-24 17:54:54 +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'
}
},
css: [
2017-07-06 22:27:27 +00:00
{ src: '~/assets/app.css' }
],
render: {
2017-06-16 13:23:34 +00:00
http2: {
push: true
},
static: {
maxAge: '1y'
}
}
2016-12-21 14:03:37 +00:00
}