-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
67 lines (66 loc) · 1.74 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
const data = {
lang: 'pt-br',
name: 'Fatec Dev Day',
title: 'Fatec Dev Day 2019',
description: 'Fatec Dev Day: um dia dedicado a se atualizar sobre desenvolvimento Web e Mobile, linguagens de programação e sistemas em geral',
domain: 'https://fatecdevday.com.br/',
thumbnail: 'https://fatecdevday.com.br/thumbnail.jpg',
mapsKey: 'AIzaSyAkzlHuZCCu7WwWPh4G_zrzHyEOHX7plWs'
}
export default {
head: {
title: data.title,
htmlAttrs: {
lang: data.lang
},
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
script: [
{ src: `https://maps.googleapis.com/maps/api/js?key=${data.mapsKey}&extension=.js&language=pt®ion=BR` }
]
},
meta: [
{ lang: data.lang },
{ charset: 'utf-8' },
{ name: data.title },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: data.description },
{ hid: 'thumbnail', name: 'thumbnail', content: data.domain + data.thumbnail }
],
loading: { color: '#ad0f0a' },
generate: {
fallback: true
},
ignore: [
'**/.netlify/**'
],
modules: [
'@nuxtjs/pwa'
],
manifest: {
name: data.title,
short_name: data.name,
lang: data.lang,
start_url: '/',
description: data.description,
ogSiteName: data.name,
ogTitle: data.title,
ogDescription: data.description,
ogHost: data.domain,
ogImage: data.thumbnail,
twitterCard: 'summary_large_image'
},
build: {
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
}