-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
221 lines (219 loc) · 6.57 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
require('dotenv').config()
module.exports = {
/*
** Headers of the page
*/
head: {
title: "GCOOS Hurricane Information Dashboard",
meta: [{
charset: 'utf-8'
},
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{
hid: 'description',
name: 'description',
content: 'GCOOS Hurricane Information Dashboard. Hurricane-related information for the Gulf of Mexico including meteorological & oceanographic conditions; preparation, evacuation & post-storm resources. It provides information of hurricane track, satellite images, preparation resources and state/county emergency operation centers and shelters'
}
],
link: [{
rel: 'icon',
type: 'image/x-icon',
href: '/hurricane/favicon.ico'
},
{
/* Google Font */
rel: "stylesheet",
href: "https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons"
},
{
/* Adobe Proxima Nova */
rel: "stylesheet",
href: "https://use.typekit.net/pel5bpx.css"
},
{
/* Font Awesome */
rel: "stylesheet",
href: "https://use.fontawesome.com/releases/v5.11.2/css/all.css",
integrity: "sha384-KA6wR/X5RY4zFAHpv/CnoG2UW1uogYfdnP67Uv7eULvTveboZJg0qUpmJZb5VqzN",
crossorigin: "anonymous"
},
{
/* Leaflet */
rel: "stylesheet",
href: "https://unpkg.com/[email protected]/dist/leaflet.css",
integrity: "sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==",
crossorigin: ""
},
{
/* Leaflet Fullscreen */
rel: "stylesheet",
href: "https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css"
},
{
/* Leaflet Extra Marker */
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/leaflet.extra-markers.min.css"
},
{
/* Leaflet Gesture Control */
rel: "stylesheet",
href: "https://unpkg.com/[email protected]/dist/leaflet-gesture-handling.min.css"
},
{
/* Leaflet TimeDimension */
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.timedimension.control.min.css"
},
{
/* jQuery UI */
rel: "stylesheet",
href: "https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"
},
],
script: [
{
/* jQuery for ajax */
src: "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"
},
{
/* jQuery-UI */
src: "https://code.jquery.com/ui/1.12.1/jquery-ui.js"
},
{
/* d3 */
src: "https://d3js.org/d3.v5.min.js"
},
{
/* Leaflet */
src: "https://unpkg.com/[email protected]/dist/leaflet.js",
integrity:"sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==",
crossorigin:""
},
{
/* ESRI-Leaflet */
src: "https://unpkg.com/[email protected]/dist/esri-leaflet.js",
integrity: "sha512-q7X96AASUF0hol5Ih7AeZpRF6smJS55lcvy+GLWzJfZN+31/BQ8cgNx2FGF+IQSA4z2jHwB20vml+drmooqzzQ==",
crossorigin: ""
},
{
/* Leaflet Fullscreen button */
src: "https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js"
},
{
/* Leaflet Extra Marker */
src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/leaflet.extra-markers.min.js"
},
{
/* Leaflet Gesture Control */
src: "https://unpkg.com/[email protected]/dist/leaflet-gesture-handling.min.js"
},
{
/* Google Maps API */
src: "https://maps.googleapis.com/maps/api/js?key="+process.env.GOOGLE_MAP_API_KEY+"&libraries=places"
},
{
/* Leaflet GoogleMutant */
src: "https://unpkg.com/leaflet.gridlayer.googlemutant@latest/dist/Leaflet.GoogleMutant.js"
},
/* Leaflet Time Dimension */
{ src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/NonTiledLayer.js"},
{ src: "https://cdn.jsdelivr.net/npm/[email protected]/iso8601.min.js"},
{ src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.timedimension.min.js"},
{
src: "https://unpkg.com/[email protected]"
},
{
/* moment.js */
src: "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"
},
{
/* moment timezone */
src: "https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.23/moment-timezone-with-data.min.js"
},
{ src: "/hurricane/js/leaflet-velocity.js" },
{ src: "/hurricane/js/leaflet.timedimension.circlelabelmarker.js"},
{ src: "/hurricane/js/leaflet.timedimension.layer.wms.timeseries.js"},
{
/* twitter: must be the last*/
src: 'https://platform.twitter.com/widgets.js',
async: true,
defer: true
},
]
},
/*
** Customize the progress-bar color
*/
loading: {
color: '#00a2cc'
},
/*
** Global CSS
*/
css: [{
src: "~assets/css/webflow.css"
},
{
src: '~assets/css/main.css'
}
],
/*
** Plugins to load before mounting the App
*/
plugins: [{
src: '~plugins/ga.js',
ssr: false
}],
/*
** Nuxt.js modules
*/
buildModules: [
'@nuxtjs/dotenv',
],
modules: [
// Doc: https://github.com/nuxt-community/axios-module#usage
"@nuxtjs/axios",
// cache with options
[
"@nuxtjs/component-cache",
{
max: 10000,
maxAge: 1000 * 60 * 60
}
],
"bootstrap-vue/nuxt",
],
router: {
base: '/hurricane/'
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
// extend(config, ctx) {
// const vueLoader = config.module.rules.find(rule => rule.loader === 'vue-loader');
// vueLoader.options.transformAssetUrls = {
// video: ['src', 'poster'],
// source: 'src',
// img: 'src',
// image: 'xlink:href',
// 'b-img': 'src',
// 'b-img-lazy': ['src', 'blank-src'],
// 'b-card': 'img-src',
// 'b-card-img': 'img-src',
// 'b-card-img-lazy': ['src', 'blank-src'],
// 'b-carousel-slide': 'img-src',
// 'b-embed': 'src'
// }
// },
babel: {
compact: true
}
}
}