mat.services/nuxt.config.js

41 lines
967 B
JavaScript

module.exports = {
/*
** Headers of the page
*/
head: {
title: 'matthew ess',
meta: [
{ charset: 'utf-8' },
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'my personal website' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
},
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend(config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/,
});
config.module.rules.push({
test: /\.md$/,
loader: 'vue-markdown-loader',
exclude: /(node_modules)/,
});
}
},
},
};