generated from Flosciante/nuxt-image-gallery
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnuxt.config.ts
94 lines (94 loc) · 1.83 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-07-30',
future: { compatibilityVersion: 4 },
modules: [
'@nuxthub/core',
'@nuxtjs/color-mode',
'@nuxt/eslint',
'@nuxtjs/i18n',
'@pinia/nuxt',
'@vueuse/nuxt',
'@unocss/nuxt',
'nuxt-auth-utils',
],
hub: {
blob: true,
database: true,
},
components: [
{
path: '~/components/ui',
prefix: '',
extensions: ['vue'],
},
{
path: '~/components/inspira',
prefix: '',
extensions: ['vue'],
},
'~/components',
],
imports: {
presets: [
{ from: 'vue-sonner', imports: ['toast'] },
],
},
css: [
'@unocss/reset/tailwind.css',
],
colorMode: {
classSuffix: '',
},
experimental: {
viewTransition: true,
},
runtimeConfig: {
public: {
title: process.env.NUXT_PUBLIC_TITLE,
description: process.env.NUXT_PUBLIC_DESCRIPTION,
},
},
i18n: {
locales: [
{ code: 'en', iso: 'en-US', file: 'en.yml' },
{ code: 'zh', iso: 'zh-CN', file: 'zh.yml' },
],
defaultLocale: 'en',
bundle: {
optimizeTranslationDirective: false,
},
},
devtools: { enabled: true },
eslint: {
config: {
standalone: false,
nuxt: {
sortConfigKeys: true,
},
},
},
build: {
transpile: [/@jsquash\//],
},
vite: {
optimizeDeps: {
exclude: ['@jsquash/avif', '@jsquash/jpeg', '@jsquash/png', '@jsquash/resize', '@jsquash/webp'],
},
worker: {
format: 'es',
},
plugins: [
{
name: 'expose-theme',
transform(src, id) {
if (id.includes('unocss-preset-shadcn')) {
return {
code: `${src}\nexport { theme };\n`,
}
}
},
},
],
},
})