-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
75 lines (66 loc) · 1.63 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
const NAME = 'Horu'
const DESCRIPTION = 'Horu\'s personal website'
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
typescript: {
strict: true,
},
css: ['@fontsource-variable/inter', '~/assets/css/index.scss'],
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: NAME,
htmlAttrs: { lang: 'en' },
meta: [
{ name: 'apple-mobile-web-app-title', content: NAME },
{ name: 'application-name', content: NAME },
{ name: 'description', content: DESCRIPTION },
{ name: 'twitter:title', content: NAME },
{ name: 'twitter:description', content: DESCRIPTION },
{ name: 'twitter:card', content: 'summary' },
{ property: 'og:title', content: NAME },
{ property: 'og:description', content: DESCRIPTION },
{ property: 'og:type', content: 'website' },
],
},
},
modules: [
'@nuxt/content',
'@nuxtjs/color-mode',
'@unocss/nuxt',
'@nuxt/image',
'@nuxt/eslint',
'@vueuse/nuxt',
'@vite-pwa/nuxt',
],
devtools: {
enabled: true,
},
eslint: {
config: {
standalone: false,
},
},
unocss: {
preflight: true,
components: false,
},
pwa: {
registerType: 'autoUpdate',
workbox: {
navigateFallback: '/',
globPatterns: ['**/*.{js,css,html,woff2}', 'api/**/*.json'],
},
manifest: {
background_color: '#FFF',
theme_color: '#000',
display: 'minimal-ui',
lang: 'en',
orientation: 'portrait-primary',
shortcuts: [{ name: 'Blogs', url: '/blogs' }],
},
},
})