-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
79 lines (79 loc) · 1.72 KB
/
nuxt.config.ts
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
baseURL: '/',
pageTransition: { name: 'page', mode: 'out-in' },
head: {
htmlAttrs: {
dir: 'ltr',
lang: 'en'
}
}
},
router: {
options: {
scrollBehaviorType: 'smooth'
}
},
nitro: {
preset: 'github-pages'
},
devtools: { enabled: false },
modules: ['@vite-pwa/nuxt', '@nuxtjs/google-fonts', '@nuxtjs/tailwindcss', 'nuxt-icon', '@hypernym/nuxt-gsap'],
pwa: {
manifest: {
name: "Malthe Kusk's Portfolio",
short_name: 'Malthe Kusk',
description: 'Portfolio of Malthesers (Malthe Kusk Lauritsen)',
theme_color: '#100019',
background_color: '#100019',
lang: 'en',
icons: [
{
src: 'maskable-icon-x48.png',
sizes: '48x48',
type: 'image/png'
},
{
src: 'maskable-icon-x96.png',
sizes: '96x96',
type: 'image/png'
},
{
src: 'maskable-icon-x128.png',
sizes: '128x128',
type: 'image/png'
},
{
src: 'maskable-icon-x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'maskable-icon-x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable'
}
]
}
},
gsap: {
extraPlugins: {
scrollTrigger: true,
scrollTo: true
}
},
googleFonts: {
display: 'swap',
families: {
Roboto: [400, 500],
Poppins: [600, 700, 800],
Montserrat: [400, 500, 600],
Jua: [400],
Spectral: [500, 600],
Merienda: [500],
Sacramento: [400]
}
}
})