generated from notKamui/Nightrunner
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnuxt.config.ts
118 lines (105 loc) · 2.39 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
import ViteYaml from '@modyfi/vite-plugin-yaml'
import { definePreset } from '@primevue/themes'
import Aura from '@primevue/themes/aura'
const customTheme = definePreset(Aura, {
semantic: {
primary: {
50: '{emerald.50}',
100: '{emerald.100}',
200: '{emerald.200}',
300: '{emerald.300}',
400: '{emerald.400}',
500: '{emerald.500}',
600: '{emerald.600}',
700: '{emerald.700}',
800: '{emerald.800}',
900: '{emerald.900}',
950: '{emerald.950}',
},
},
})
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: 'BULB • Beautiful Urban Line Builder',
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
},
imports: { autoImport: false },
components: [{ path: '~/components', pathPrefix: false }],
typescript: {
tsConfig: {
compilerOptions: {
moduleResolution: 'bundler',
},
},
},
build: {
transpile: ['vue-i18n'],
},
vite: {
vue: {
script: {
defineModel: true,
propsDestructure: true,
},
},
plugins: [ViteYaml()],
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler', // or "modern"
},
},
},
},
experimental: {
typedPages: true,
},
// uncomment to disable SSR. This will basically make the app a SPA, like a normal Vue app, but with all the Nuxt goodies
ssr: false,
// global CSS files
css: [
'@unocss/reset/tailwind-compat.css',
'~/assets/style/custom.css',
],
fonts: {
families: [
{ name: 'Parisine Std', provider: 'local', weights: ['normal', 'bold'], styles: ['normal', 'italic'] },
],
},
// plugin configurations
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
'@nuxtjs/critters',
'@nuxtjs/color-mode',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@primevue/nuxt-module',
'@nuxt/fonts',
],
colorMode: {
preference: 'system',
fallback: 'light',
classPrefix: '',
classSuffix: '-mode',
storageKey: 'color-scheme',
},
primevue: {
options: {
theme: {
preset: customTheme,
options: {
darkModeSelector: '.dark-mode',
},
},
},
importPT: {
as: 'Passthrough',
from: '/utils/passthrough.ts',
},
},
compatibilityDate: '2024-07-20',
})