Created
October 6, 2018 19:22
-
-
Save typerory/624ccd4de4c190e3e633b93de1f978f4 to your computer and use it in GitHub Desktop.
nuxt.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
/* | |
** Modules | |
*/ | |
modules: [ | |
'bootstrap-vue/nuxt', | |
['nuxt-sass-resources-loader', '@/../assets/css/style.scss'] | |
], | |
/* | |
** Headers of the page | |
*/ | |
head: { | |
title: 'client', | |
meta: [ | |
{ charset: 'utf-8' }, | |
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | |
{ | |
hid: 'description', | |
name: 'description', | |
content: 'nuxt-strapi-graphql-bootstrap-stack' | |
} | |
], | |
css: [ | |
'@/../assets/css/page.css', | |
'@/../assets/css/style.css', | |
'@/../assets/css/style.scss' | |
], | |
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }] | |
}, | |
/* | |
** Customize the progress bar color | |
*/ | |
loading: { color: '#3B8070' }, | |
/* | |
** Build configuration | |
*/ | |
build: { | |
/* | |
** Run ESLint on save | |
*/ | |
extend (config, { isDev }) { | |
if (isDev && process.client) { | |
config.module.rules.push({ | |
enforce: 'pre', | |
test: /\.(js|vue)$/, | |
loader: 'eslint-loader', | |
exclude: /(node_modules)/ | |
}) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment