-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
127 lines (126 loc) · 2.76 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
121
122
123
124
125
126
127
// https://nuxt.com/docs/api/configuration/nuxt-config
const projectName = process.env.NUXT_SITE_NAME || 'Nuxt Packages'
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@pinia/nuxt',
'@unocss/nuxt',
'nuxt-shiki',
'nuxt-icon',
'@formkit/auto-animate/nuxt',
'@nuxtjs/google-fonts',
'nuxt-icons',
'@nuxtjs/tailwindcss',
'nuxt-headlessui',
'@vee-validate/nuxt',
'@nuxt/image',
'@vite-pwa/nuxt',
'@vueuse/nuxt',
'@nuxtjs/color-mode',
'nuxt-swiper',
'nuxt-aos',
'@nuxtjs/i18n',
'nuxt-marquee',
'@nuxtjs/device',
'dayjs-nuxt',
'nuxt-snackbar',
'nuxt-bootstrap-icons',
'nuxt-simple-sitemap',
],
shiki: {
defaultTheme: 'material-theme-palenight',
bundledLangs: [
'vue',
'js',
'ts',
'bash',
],
},
googleFonts: {
families: {
'DM Sans': true,
Montserrat: true,
Lato: [100, 900],
'Protest Revolution': {
wght: [100, 400],
ital: [100]
},
}
},
veeValidate: {
autoImports: true,
componentNames: {
Form: 'VeeForm',
Field: 'VeeField',
FieldArray: 'VeeFieldArray',
ErrorMessage: 'VeeErrorMessage',
},
},
pwa: {
registerType: 'autoUpdate',
manifest: {
name: projectName,
short_name: projectName,
icons: [
{
src: '/images/pwa/192x192.png',
sizes: '192x192',
type: 'image/png',
purpose: 'any'
},
{
src: '/images/pwa/512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any'
},
{
src: '/images/pwa/maskable-192x192.png',
sizes: '192x192',
type: 'image/png',
purpose: 'maskable'
},
{
src: '/images/pwa/maskable-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable'
}
],
start_url: '/',
display: 'fullscreen',
background_color: '#020420',
theme_color: '#00DC82',
lang:'en',
description: 'Supercharge your web development with Nuxt.js! Explore powerful packages, seamless Vue.js integration, and unleash your creativity today.',
},
includeAssets: [
'/images/pwa/favicon.ico',
'/images/pwa/apple-touch-icon.png',
'/images/pwa/mask-icon.svg',
],
workbox: {
navigateFallback: '/',
},
devOptions: {
enabled: true,
},
},
snackbar: {
bottom: true,
right: true,
duration: 3000
},
bootstrapIcons: {
display: 'inline',
},
runtimeConfig: {
public: {
siteURL: process.env.NUXT_SITE_URL || '/',
siteName: projectName,
}
},
site: {
url: process.env.NUXT_SITE_URL,
},
})