-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.js
145 lines (138 loc) · 3.9 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
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
export default {
target: 'static',
/*
** Headers of the page
*/
head: {
htmlAttrs: {
lang: 'ru'
},
title:
'ВЭК СЕРВИС. Обслуживание и управление объектами коммерческой и государственной недвижимости по всей России',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'Основные сферы деятельности компании: установка и обслуживание механических, электрических, слаботочных инженерных систем, услуги по эксплуатации ЖКХ, отделочные и ремонтные работы.'
}
],
link: [
{ rel: 'icon', type: 'image/png', href: '/favicon.png' },
{
rel: 'stylesheet',
href:
'https://fonts.googleapis.com/css?family=Montserrat:400,600&subset=cyrillic'
},
{
rel: 'stylesheet',
href:
'https://cdn.envybox.io/widget/cbk.css'
}
],
script: [
{
src: 'https://cdn.envybox.io/widget/cbk.js?wcb_code=fd8b1b058a9498d579099a6e3f599eb6',
type: 'text/javascript',
charset: 'UTF-8',
async: true,
body: true
},
// Call tracking.
{
// eslint-disable-next-line quotes
innerHTML: `(function(window,document,n,project_ids){window.GudokData=n;if(typeof project_ids !== "object"){project_ids = [project_ids]};window[n] = {};window[n]["projects"]=project_ids;config_load(project_ids.join(','));function config_load(cId){var a=document.getElementsByTagName("script")[0],s=document.createElement("script"),i=function(){a.parentNode.insertBefore(s,a)},cMrs='';s.async=true;if(document.location.search&&document.location.search.indexOf('?gudok_check=')===0)cMrs+=document.location.search.replace('?','&');s.src="//mod.gudok.tel/script.js?sid="+cId+cMrs;if(window.opera == "[object Opera]"){document.addEventListener("DOMContentLoaded", i, false)}else{i()}}})(window, document, "gd", "0rgg0dapbn");`,
type: 'text/javascript',
body: true
}
]
},
/*
** Global CSS
*/
css: [
'~assets/css/normalize.css',
{ src: '~assets/scss/global.scss', lang: 'scss' }
],
/*
** Customize the progress bar color
*/
loading: { color: '#4f48a3' },
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
// extractCSS: true
},
modules: [
[
'@nuxtjs/yandex-metrika',
{
id: '45245817',
webvisor: true,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true
}
],
'@nuxtjs/sitemap'
],
buildModules: [
'@nuxt/image',
'@nuxtjs/google-analytics'
],
googleAnalytics: {
id: 'UA-200894230-1'
},
plugins: ['~/plugins/plugin.client.js'],
sitemap: {
path: '/sitemap.xml',
hostname: 'https://vekservis.ru',
cacheTime: 1000 * 60 * 15
},
image: {
dir: 'static/img',
provider: 'static',
presets: {
square80: {
modifiers: {
format: 'jpg',
fit: 'cover',
width: 80,
height: 80
}
},
square160: {
modifiers: {
format: 'jpg',
fit: 'cover',
width: 160,
height: 160
}
},
thumb160x226: {
modifiers: {
format: 'jpg',
fit: 'cover',
width: 160,
height: 226
}
}
}
}
}