Skip to content

Instantly share code, notes, and snippets.

@typerory
Created October 6, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typerory/624ccd4de4c190e3e633b93de1f978f4 to your computer and use it in GitHub Desktop.
Save typerory/624ccd4de4c190e3e633b93de1f978f4 to your computer and use it in GitHub Desktop.
nuxt.config.js
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