Nuxt/test/fixtures/basic/nuxt.config.js
2018-07-25 17:58:24 +01:00

47 lines
894 B
JavaScript

import path from 'path'
export default {
generate: {
routes: [
// TODO: generate with {build: false} does not scans pages!
'/stateless',
'/css',
'/stateful',
'/head',
'/async-data',
'/validate',
'/redirect',
'/users/1',
'/users/2',
{ route: '/users/3', payload: { id: 3000 } }
],
interval: 200,
subFolders: true
},
head: {
titleTemplate: (titleChunk) => {
return titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js'
}
},
modulesDir: path.join(__dirname, '..', '..', '..', 'node_modules'),
hooks: {
ready(nuxt) {
nuxt.__hook_called__ = true
},
bad: null,
'': true
},
transition: false,
build: {
scopeHoisting: true,
postcss: [
require('postcss-preset-env')({
features: {
'custom-selectors': true
}
})
]
}
}