-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.js
More file actions
60 lines (53 loc) · 1.18 KB
/
nuxt.config.js
File metadata and controls
60 lines (53 loc) · 1.18 KB
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
module.exports = {
head: {
title: 'Find Earth',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Find Earth: open source platform to help tracing missing persons' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }
]
},
loading: { color: '#DAE1E9' },
css: [
'font-awesome/css/font-awesome.css',
'flexboxgrid/dist/flexboxgrid.min.css',
'~assets/css/main.css'
],
router: {
middleware: 'i18n'
},
build: {
vendor: [
'trae',
'vue2-google-maps',
'moment',
'particles.js',
'vue-i18n'
],
extend (config, ctx) {
if (ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
modules: [
{
src: '@nuxtjs/google-analytics',
options: {
ua: 'UA-98216529-1'
}
}
],
plugins: [
{ src: '~plugins/vue-google-maps' },
{ src: '~plugins/i18n.js', injectAs: 'i18n' }
]
}