generated from Jabatronic/iamjabulani
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
175 lines (171 loc) · 4.39 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
export default {
mode: 'spa',
/*
** Headers of the page
*/
head: {
title: 'Jabulani Robbins - Portfolio & Résumé',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Jabulani Robbins - Web Developer, Designer' },
// Open Graph
{ name: 'og:title', content: 'I AM JABULANI' },
{ name: 'og:description', content: 'Jabulani Robbins - Web Developer, Designer' },
{ name: 'og:type', content: 'website' },
{ name: 'og:url', content: 'https://iamjabulani.tech' },
{ name: 'og:image', content: 'https://iamjabulani.tech/_nuxt/img/5845c69-128.jpg' },
// Twitter Card
{ name: 'twitter:card', content: 'summary' },
{ name: 'twitter:site', content: 'https://iamjabulani.tech' },
{ name: 'twitter:title', content: 'IAMJABULANI' },
{ name: 'twitter:description', content: 'Jabulani Robbins - Web Developer, Designer' },
{ name: 'twitter:image', content: 'https://iamjabulani.tech/_nuxt/img/5845c69-128.jpg' },
{ name: 'twitter:image:alt', content: '' },
// Google
{ name: 'google-site-verification', content: 'yc6LLW5qdaiJfVKs8EDXhyumzm18D-oooskj9dYXs9A' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'preload', crossorigin: 'anonymous', href: 'https://fonts.googleapis.com/css?family=Raleway|Roboto|Roboto+Slab:600&display=swap', as: 'style' },
{ rel: 'stylesheet', crossorigin: 'anonymous', href: 'https://fonts.googleapis.com/css?family=Raleway|Roboto|Roboto+Slab:600&display=swap' }
],
bodyAttrs: {
class: ['has-navbar-fixed-top']
}
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
'~/assets/scss/main.scss'
],
/*
** Make sass variables available globally
*/
styleResources: {
scss: ['~/assets/scss/_variables.scss']
},
/*
** PWA Options
*/
pwa: {
workbox: {
/* workbox options */
config: {
debug: true
},
runtimeCaching: [
{
urlPattern: 'https://fonts.(?:googleapis|gstatic).com/(.*)',
handler: 'cacheFirst',
cacheableResponse: {
statuses: [0, 200]
},
strategyOptions: {
cacheName: 'google-fonts',
cacheExpiration: {
maxEntries: 30
}
}
}
]
}
},
/*
** Overwrite's generated manifest values
*/
manifest: {
name: 'I AM JABULANI - Portfolio & Résumé',
short_name: 'I AM JABULANI',
lang: 'en',
display: 'standalone'
},
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '@/plugins/aos', ssr: false },
{ src: '@/plugins/vue-lazy', ssr: false }
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module',
'@nuxtjs/google-analytics'
],
googleAnalytics: {
id: 'UA-132812852-3'
// debug: {
// enabled: false
// // sendHitTask: true
// }
},
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://github.com/nuxt-community/modules/tree/master/packages/bulma
// '@nuxtjs/bulma',
'@nuxtjs/pwa',
// Doc: https://github.com/nuxt-community/style-resources-module
'@nuxtjs/style-resources',
'@bazzite/nuxt-optimized-images'
// '~/modules/typefaces'
],
optimizedImages: {
optimizeImages: true,
optimizeImagesInDev: false,
defaultImageLoader: 'responsive-loader',
handleImages: ['jpeg', 'png', 'svg', 'webp', 'gif'],
responsive: {
sizes: [1000, 750, 500, 330, 200],
placeholder: true
},
mozjpeg: {
quality: 85
},
optipng: false,
pngquant: {
speed: 7,
quality: [0.65, 0.8]
},
webp: {
quality: 85
}
},
/*
** Build configuration
*/
build: {
postcss: {
preset: {
features: {
customProperties: false
}
}
},
/*
** You can extend webpack config here
*/
extend (config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/,
options: {
fix: true
}
})
}
}
}
}