-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
68 lines (59 loc) · 1.71 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// For more info, visit https://nuxtjs.org/api/configuration-build
module.exports = {
// Headers of the page
head: {
titleTemplate: '%s - Corum',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'An open, democratic & self governing forum.'
}
],
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }]
},
// CSS globals
css: ['~/assets/styles/globals.styl'],
// Customize the progress bar color
// $nav-hover (Found at '~/assets/styles/variables.styl')
loading: { color: '#53c556' },
// Build configuration
build: {
// Extend the webpack config
extend(config, { isClient, isDev }) {
if (isClient && isDev) {
// Run ESLint on save
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
/*
Define modules used.
For more info, visit https://nuxtjs.org/guide/modules
@nuxtjs/apollo - Provides vue-apollo + apollo-client
@nuxtjs/dotenv - Reads .env and merges with process.env
@nuxtjs/font-awesome - Provides icons
@nuxtjs/pwa - Adds PWA features like offline support etc.
Documentation for the modules used here can be found at:
https://github.com/nuxt-community/awesome-nuxt#modules
*/
modules: [
'@nuxtjs/apollo',
'@nuxtjs/dotenv',
'@nuxtjs/font-awesome',
'@nuxtjs/pwa'
],
// Specify the file where the apollo client config resides
apollo: {
clientConfigs: {
default: '~/apollo/client-configs/default.js'
}
}
}