Skip to content

Instantly share code, notes, and snippets.

@korrio
Created September 26, 2019 09:17
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 korrio/1c6d1656c172aa0b0d857fd8969dbef1 to your computer and use it in GitHub Desktop.
Save korrio/1c6d1656c172aa0b0d857fd8969dbef1 to your computer and use it in GitHub Desktop.
nuxt.config.js
import colors from 'vuetify/es5/util/colors'
export default {
mode: 'universal',
/*
** Headers of the page
*/
head: {
titleTemplate: `%s - ${process.env.npm_package_name}`,
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'stylesheet',
href:
'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'
}
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
'~assets/style/helper.scss',
'~assets/style/fonts.scss'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '~/plugins/vue-concise-slider.js', mode: 'client' },
{ src: '~/plugins/filter.js' }
],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/vuetify',
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/pwa',
'@nuxtjs/eslint-module',
'@nuxtjs/markdownit',
'vue-wait/nuxt'
],
markdownit: {
injected: true
},
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
theme: {
light: true,
themes: {
light: {
primary: '#003776',
accent: colors.grey.darken3,
secondary: '#ff8800',
info: '#069bf9',
warning: '#ffcc00',
error: '#e90303',
success: '#7ed321'
}
}
}
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment