-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
120 lines (120 loc) · 2.96 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
114
115
116
117
118
119
120
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxtjs/tailwindcss",
"nuxt-icon",
"nuxt-headlessui",
"@kevinmarrec/nuxt-pwa",
],
css: ["@fontsource/inter/variable.css"],
typescript: {
strict: true,
},
vite: {
build: {
target: "esnext",
},
},
nitro: {
esbuild: {
options: {
target: "esnext",
},
},
},
app: {
keepalive: true,
head: {
htmlAttrs: {
class: "antialiased",
},
// Prevent arbitrary zooming on mobile devices
viewport:
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover",
bodyAttrs: {
class:
"bg-purple-1 text-mauve-12 selection:bg-purple-4 dark:bg-purpleDark-1 dark:text-mauveDark-12 dark:selection:bg-purpleDark-4",
},
link: [
{
rel: "icon",
href: "favicon.ico",
},
{
rel: "apple-touch-icon",
sizes: "180x180",
href: "/favicons/apple-touch-icon.png",
},
{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/favicons/favicon-32x32.png",
},
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/favicons/favicon-16x16.png",
},
{
rel: "mask-icon",
href: "/favicons/pwa-512x512.png",
},
],
meta: [
{
name: "apple-mobile-web-app-status-bar-style",
content: "black-translucent",
},
// open graph social image
{ property: "og:title", content: "Nuxt Tailwind PWA" },
{
property: "og:description",
content: "A Nuxt.js project with Tailwind CSS and PWA",
},
{ property: "og:site_name", content: "Nuxt Tailwind PWA" },
{ property: "msapplication-TileColor", content: "#da532c" },
{
name: "theme-color",
media: "(max-width: 640px)",
content: "hsl(283, 30.0%, 11.8%)",
},
{
name: "theme-color",
media: "(min-width: 640px)",
content: "hsl(284, 20.0%, 9.6%)",
},
],
},
},
pwa: {
manifest: {
name: "Nuxt Tailwind PWA",
short_name: "nuxt-tailwind-pwa",
description: "A Nuxt.js project with Tailwind CSS and PWA",
background_color: "hsl(284, 20.0%, 9.6%)",
theme_color: "hsl(284, 20.0%, 9.6%)",
icons: [
{
src: "favicons/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable",
},
{
src: "favicons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
{
src: "favicons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
],
},
},
})