2018-10-18 05:13:18 +00:00
|
|
|
import pkg from './package'
|
2018-10-14 06:45:44 +00:00
|
|
|
|
2018-10-18 05:13:18 +00:00
|
|
|
export default {
|
2018-10-14 06:45:44 +00:00
|
|
|
mode: 'universal',
|
|
|
|
|
2018-02-09 18:01:38 +00:00
|
|
|
/*
|
|
|
|
** Headers of the page
|
|
|
|
*/
|
|
|
|
head: {
|
2018-10-14 06:45:44 +00:00
|
|
|
titleTemplate(titleChunk) {
|
|
|
|
return titleChunk ? `${titleChunk} | matthew ess` : 'matthew ess'
|
|
|
|
},
|
2018-02-09 18:01:38 +00:00
|
|
|
meta: [
|
|
|
|
{ charset: 'utf-8' },
|
|
|
|
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1' },
|
|
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
2018-10-18 06:19:46 +00:00
|
|
|
{ hid: 'description', name: 'description', content: pkg.description },
|
|
|
|
],
|
2018-02-09 18:01:38 +00:00
|
|
|
},
|
2018-10-14 06:45:44 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
** Customize the progress-bar color
|
|
|
|
*/
|
|
|
|
loading: { color: '#fff' },
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Global CSS
|
|
|
|
*/
|
|
|
|
css: [],
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Plugins to load before mounting the App
|
|
|
|
*/
|
2018-10-18 05:13:18 +00:00
|
|
|
plugins: ['~/plugins/filters.js'],
|
2018-10-14 06:45:44 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
** Nuxt.js modules
|
|
|
|
*/
|
2018-10-15 03:25:55 +00:00
|
|
|
modules: ['@nuxtjs/bulma', 'nuxtent'],
|
|
|
|
|
2018-10-18 05:13:18 +00:00
|
|
|
/*
|
|
|
|
** Static Site Generation configuration
|
|
|
|
*/
|
|
|
|
generate: {
|
2018-10-18 06:19:46 +00:00
|
|
|
dir: 'public',
|
2018-10-18 05:13:18 +00:00
|
|
|
},
|
|
|
|
|
2018-10-15 03:25:55 +00:00
|
|
|
/*
|
|
|
|
** Nuxtent configuration
|
|
|
|
*/
|
|
|
|
nuxtent: {
|
2018-10-18 05:13:18 +00:00
|
|
|
content: {
|
2018-10-18 06:19:46 +00:00
|
|
|
page: '/_slug',
|
|
|
|
permalink: '/blog/:slug',
|
|
|
|
isPost: false,
|
|
|
|
generate: ['get', 'getAll'],
|
|
|
|
},
|
|
|
|
api: isStatic => {
|
|
|
|
return {
|
|
|
|
browserBaseURL: isStatic ? 'https://mat.services' : '',
|
|
|
|
}
|
|
|
|
},
|
2018-10-15 03:25:55 +00:00
|
|
|
},
|
2018-10-14 06:45:44 +00:00
|
|
|
|
2018-02-09 18:01:38 +00:00
|
|
|
/*
|
|
|
|
** Build configuration
|
|
|
|
*/
|
|
|
|
build: {
|
2018-10-14 06:45:44 +00:00
|
|
|
postcss: {
|
|
|
|
preset: {
|
|
|
|
features: {
|
2018-10-18 06:19:46 +00:00
|
|
|
customProperties: false,
|
|
|
|
},
|
|
|
|
},
|
2018-10-14 06:45:44 +00:00
|
|
|
},
|
2018-02-09 18:01:38 +00:00
|
|
|
/*
|
2018-10-14 06:45:44 +00:00
|
|
|
** You can extend webpack config here
|
2018-02-09 18:01:38 +00:00
|
|
|
*/
|
2018-10-14 06:45:44 +00:00
|
|
|
extend(config, ctx) {
|
|
|
|
// Run ESLint on save
|
|
|
|
if (ctx.isDev && ctx.isClient) {
|
2018-02-09 18:01:38 +00:00
|
|
|
config.module.rules.push({
|
|
|
|
enforce: 'pre',
|
|
|
|
test: /\.(js|vue)$/,
|
|
|
|
loader: 'eslint-loader',
|
2018-10-18 06:19:46 +00:00
|
|
|
exclude: /(node_modules)/,
|
2018-10-14 06:45:44 +00:00
|
|
|
})
|
2018-02-09 18:01:38 +00:00
|
|
|
}
|
2018-10-18 06:19:46 +00:00
|
|
|
},
|
|
|
|
},
|
2018-10-14 06:45:44 +00:00
|
|
|
}
|