-
Notifications
You must be signed in to change notification settings - Fork 28
/
nuxt.config.js
90 lines (90 loc) · 2.16 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module.exports = {
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
},
vendor: [
'axios',
'mixpanel-browser',
'smoothscroll-polyfill',
'vue-clickaway',
'webfontloader'
]
},
generate: {
routes: [
'/'
]
},
/*
** mode: 'spa' is the other option: https://nuxtjs.org/api/configuration-mode
*/
mode: process.env.MODE || 'universal',
modules: [
'@nuxtjs/sentry',
'@nuxtjs/router',
['@nuxtjs/google-analytics', { ua: process.env.GOOGLE_ANALYTICS }]
],
router: {
saveScrollPosition: true
},
serverMiddleware: [
'redirect-ssl'
],
css: [
{ src: '~/assets/css/main.scss', lang: 'scss' }
],
env: {
apiUrl: process.env.API_URL || 'http://localhost:3000',
fullstory: process.env.FULLSTORY || '00000',
mixpanel: process.env.MIXPANEL || '00000000000000000000000000000000'
},
head: {
title: 'State of the ÐApps — Projects Built on Ethereum',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' },
{ hid: 'description', name: 'description', content: 'State of the ÐApps is the curated collection of Decentralized Apps' },
{ name: 'theme-color', content: '#222' }
],
link: [
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
sizes: '180x180'
},
{
rel: 'icon',
href: '/favicon-32x32.png',
sizes: '32x32'
},
{
rel: 'icon',
href: '/favicon-16x16.png',
sizes: '16x16'
},
{
rel: 'manifest',
href: '/manifest.json'
}
]
},
loading: { color: '#333' },
plugins: [
{ src: '~/plugins/constants' },
{ src: '~/plugins/filters' },
{ src: '~/plugins/mixpanel', ssr: false },
{ src: '~/plugins/webfontloader', ssr: false },
{ src: '~/plugins/smoothscroll-polyfill', ssr: false }
]
}