mat.services/nuxt.config.js

68 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-10-14 06:45:44 +00:00
const pkg = require('./package') // javascript.validate.enable false
2018-02-09 18:01:38 +00:00
module.exports = {
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-14 06:45:44 +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
*/
plugins: [],
/*
** Nuxt.js modules
*/
modules: ['@nuxtjs/bulma'],
2018-02-09 18:01:38 +00:00
/*
** Build configuration
*/
build: {
2018-10-14 06:45:44 +00:00
postcss: {
preset: {
features: {
customProperties: false
}
}
},
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-14 06:45:44 +00:00
exclude: /(node_modules)/
})
2018-02-09 18:01:38 +00:00
}
2018-10-14 06:45:44 +00:00
}
}
}