-
Notifications
You must be signed in to change notification settings - Fork 8
/
nuxt.config.base.js
180 lines (179 loc) · 4.22 KB
/
nuxt.config.base.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
import colors from 'vuetify/es5/util/colors'
export default {
ssr: false,
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'static',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {
titleTemplate: (titleChunk) => {
// If undefined or blank then we don't need the hyphen
return titleChunk ? `${titleChunk} | Mass Effect 5e` : 'Mass Effect 5e'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'keywords', name: 'keywords', content: 'mass effect, d&d, dnd, Dungeons & Dragons, 5e, 5th Edition, TRPG, RPG, d20, homebrew, conversion, tabletop' },
{ hid: 'description', name: 'description', content: 'D&D 5th Edition Homebrew featuring the Mass Effect Universe' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#b71c1c' },
/*
** Global CSS
*/
css: [
],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: [
'@/plugins/persistentState.client.js',
'@/plugins/filters/index.js',
'@/plugins/vue2-filters',
'@/plugins/globals',
'@/plugins/amplify.client.js',
'@/plugins/gtag.client.js'
],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: false,
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module',
'@nuxtjs/vuetify',
'@nuxtjs/pwa',
'@nuxtjs/google-analytics',
'@nuxtjs/moment'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://http.nuxtjs.org/usage
'@nuxtjs/i18n',
'@nuxt/http',
'vue2-editor/nuxt'
],
/*
** i18n
** See https://i18n.nuxtjs.org/options-reference
*/
i18n: {
locales: [
{
code: 'en',
iso: 'en-US',
file: 'loader.js'
}
],
lazy: true,
langDir: 'lang',
defaultLocale: 'en',
detectBrowserLanguage: {
// TODO: this is less performant, but bypasses GDPR
useCookie: false,
// cookieKey: 'i18n_redirected',
onlyOnRoot: true
},
baseUrl: 'https://n7.world',
vuex: {
moduleName: 'i18n',
syncRouteParams: true
},
vueI18n: {
fallbackLocale: 'en'
}
},
/*
** http module configuration
** Doc: https://http.nuxtjs.org/usage
*/
http: {
baseURL: `${process.env.API_BASE_URL}/${process.env.VERSION.replace(/\./g, '')}`
// baseURL: '/.me5e/'
},
/*
** PWA
** See https://pwa.nuxtjs.org/
*/
pwa: {
manifest: {
name: 'Mass Effect 5e',
lang: 'en',
theme_color: colors.red.darken4,
short_name: 'Mass Effect 5e'
}
},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
customVariables: ['~/assets/variables.scss'],
treeShake: {
components: ['VSimpleTable', 'VAlert', 'VCard', 'VCardText', 'VChip', 'VImg', 'VIcon']
},
theme: {
dark: true,
themes: {
light: {
primary: colors.indigo.darken4,
accent: colors.lightBlue.darken1,
secondary: colors.red.darken4,
info: colors.lightBlue.darken3,
warning: colors.amber.lighten1,
error: colors.pink.lighten1,
success: colors.lightGreen.lighten1,
tertiary: colors.black
},
dark: {
primary: colors.lightBlue.darken1,
accent: colors.indigo.darken4,
secondary: colors.red.darken4,
info: colors.lightBlue.darken3,
warning: colors.amber.lighten1,
error: colors.pink.lighten1,
success: colors.lightGreen.lighten1,
tertiary: colors.white
}
}
}
},
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
transpile: ['vuetify/lib'],
//
devMiddleware: {
headers: {
'Cache-Control': 'no-store',
Vary: '*'
}
}
},
router: {
middleware: 'auth'
},
publicRuntimeConfig: {
version: process.env.VERSION || 'v1.3.0'
}
}