-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
116 lines (110 loc) · 3.31 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
export default {
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
__dangerouslyDisableSanitizers: ['script'],
title: 'СВЯТКУЙ НА ДРАЙВІ!',
htmlAttrs: {
lang: 'ua',
},
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1, user-scalable=no',
},
{
hid: 'description',
name: 'description',
content: 'Test Test',
},
{ property: 'og:image', content: '/girl.png' },
{ property: 'og:title', content: 'СВЯТКУЙ НА ДРАЙВІ!' },
{
property: 'og:description',
content: 'Test Test',
},
{
property: 'og:image:width',
content: '200',
},
{
property: 'og:image:height',
content: '205',
},
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: 'https://pepsi.ua/favicon.ico',
},
],
script: [
{
src: 'https://www.googletagmanager.com/gtag/js?id=G-BC124SBJQE',
async: true,
},
{
innerHTML: `window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-BC124SBJQE');`,
},
{
innerHTML: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P77PRPF')`,
},
{
src: '/js/script.js',
async: true,
},
],
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: ['@/assets/css/style.css', '@/assets/css/styles.scss'],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
{ src: '~/plugins/Global' },
{ src: '~/plugins/Vuelidate' },
{ src: '~/plugins/Vmask', mode: 'client' },
{ src: '~/plugins/VueSwiper', mode: 'client' },
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
],
// Modules (https://go.nuxtjs.dev/config-modules)
modules: [],
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {
extractCSS: true,
minifyCSS: true,
minifyJS: true,
},
router: {
trailingSlashes: false,
extendRoutes(routes, resolve) {
routes.push({
path: '/rules',
component: resolve(__dirname, 'pages/index.vue'),
props: { modalProp: 'rules' },
})
routes.push({
path: '/winners',
component: resolve(__dirname, 'pages/index.vue'),
props: { modalProp: 'winners' },
})
routes.push({
path: '/user',
component: resolve(__dirname, 'pages/index.vue'),
props: { modalProp: 'myaccount' },
})
routes.push({
path: '/order',
component: resolve(__dirname, 'pages/index.vue'),
props: { modalProp: 'order' },
})
},
},
}