-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
200 lines (188 loc) · 4.3 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
const env = {
FACEBOOK_APP_ID: process.env.FACEBOOK_APP_ID,
BASE_URL: 'https://scuberqueensland.com',
};
export default {
target: 'static',
modern: true,
router: {
middleware: [],
},
generate: {
fallback: true,
},
/*
** Headers of the page
*/
head: {
title: 'scUber Queensland',
meta: [
{
once: true,
name: 'charset',
hid: 'charset',
content: 'utf-8',
},
{
once: true,
hid: 'viewport',
name: 'viewport',
content: 'width=device-width, initial-scale=1',
},
{
hid: 'description',
name: 'description',
content:
"Uber and Queensland, Australia, are giving riders the opportunity to explore the Great Barrier Reef in the world's first rideshare submarine, scUber.",
},
{ hid: 'fb:app_id', content: env.FACEBOOK_APP_ID },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:title', property: 'og:title', content: 'Win a scUber ride' },
{
hid: 'og:description',
property: 'og:description',
content: 'I just entered to win a scUber ride, who’s coming with me?!',
},
{
hid: 'og:image',
property: 'og:image',
content: '/images/fb-share-image.jpg',
},
{ hid: 'og:url', property: 'og:url', content: 'https://scuberqueensland.com/win' },
],
link: [
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
},
{ rel: 'stylesheet', href: 'https://vjs.zencdn.net/7.4.1/video-js.css' },
// fonts
{
rel: 'stylesheet',
href:
'https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i&display=swap',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/icon?family=Material+Icons&display=swap',
},
],
script: [
{
hid: 'videojs',
src: 'https://vjs.zencdn.net/7.5.4/video.min.js',
async: true,
defer: true,
},
],
},
/*
** Customize the progress-bar color
*/
loadingIndicator: {
name: '~/loading.html',
color: 'white',
throttle: 100,
background: 'black',
},
/*
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '@/plugins/facebook', ssr: false },
{ src: '@/plugins/twitter', ssr: false },
{ src: '@/plugins/mq' },
],
buildModules: ['@nuxt/typescript-build'],
/*
** Nuxt.js modules
*/
modules: [
'bootstrap-vue/nuxt',
// ['@nuxtjs/google-tag-manager', { id: 'GTM-WV2SB2T' }],
'@nuxtjs/pwa',
'vue-scrollto/nuxt',
'nuxt-i18n',
],
i18n: {
baseUrl: env.BASE_URL,
strategy: 'prefix_and_default',
langDir: 'locales/',
locales: [
{
code: 'en-au',
name: 'English Australia',
iso: 'en-AU',
file: 'en-AU.json',
},
{
code: 'en-nz',
name: 'English New Zealand',
iso: 'en-AU',
file: 'en-NZ.json',
},
{
code: 'en-gb',
name: 'English United Kingdom',
iso: 'en-GB',
file: 'en-GB.json',
},
{
code: 'en-us',
name: 'English USA',
iso: 'en-US',
file: 'en-US.json',
},
{
code: 'en-ca',
name: 'English Canada',
iso: 'en-CA',
file: 'en-CA.json',
},
{ code: 'fr-fr', name: 'Français', iso: 'fr-FR', file: 'fr-FR.json' },
],
defaultLocale: 'en-au',
lazy: true,
vueI18n: {
fallbackLocale: 'en-au',
},
},
bootstrapVue: {
bootstrapCSS: false, // or `css`
bootstrapVueCSS: false, // or `bvCSS`
componentPlugins: [
'LayoutPlugin',
'Form',
'FormGroup',
'FormCheckbox',
'FormInput',
'FormRadio',
'FormTextarea',
'FormSelect',
'Navbar',
'Collapse',
'Dropdown',
'Badge',
'Image',
'Button',
],
directivePlugins: ['Toggle', 'Scrollspy'],
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, { isClient }) {
if (isClient) {
config.devtool = 'source-map';
}
},
},
};