-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
113 lines (112 loc) · 2.25 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
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
const APP_NAME = 'imgcalc'
const APP_DESCRIPTION = 'Web app for calculating image size from aspect ratio'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: APP_NAME,
meta: [
{
name: 'description',
content: APP_DESCRIPTION
},
{
property: 'og:type',
content: 'website'
},
{
property: 'og:title',
content: APP_NAME
},
{
property: 'og:description',
content: APP_DESCRIPTION
},
{
property: 'og:url',
content: 'https://imgcalc.munieru.app/'
},
{
property: 'og:image',
content: 'https://imgcalc.munieru.app/icon.png'
},
{
property: 'og:image:width',
content: '1024'
},
{
property: 'og:image:height',
content: '1024'
},
{
name: 'twitter:card',
content: 'summary'
},
{
name: 'twitter:site',
content: '@munieru_jp'
}
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico'
},
{
rel: 'icon',
type: 'image/png',
href: '/android-chrome-192x192.png',
sizes: '192x192'
},
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
sizes: '180x180'
}
]
}
},
build: {
transpile: [
'vuetify'
]
},
css: [
'vuetify/lib/styles/main.sass'
],
modules: [
'@nuxtjs/eslint-module',
'@vite-pwa/nuxt'
],
typescript: {
strict: true
},
vite: {
define: {
'process.env.DEBUG': false
}
},
pwa: {
manifest: {
name: APP_NAME,
short_name: APP_NAME,
description: APP_DESCRIPTION,
theme_color: '#212121',
background_color: '#121212',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png'
}
],
display: 'standalone'
}
}
})