generated from antfu/vitesse-nuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
45 lines (44 loc) · 864 Bytes
/
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
import { defineNuxtConfig } from 'nuxt3'
export default defineNuxtConfig({
meta: {
title: 'Vitesse Nuxt 3',
link: [
{
rel: 'icon', type: 'image/png', href: '/nuxt.png',
},
],
},
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
'@nuxtjs/color-mode',
],
autoImports: {
dirs: [
'composables',
'store',
],
},
experimental: {
reactivityTransform: true,
// viteNode: true,
},
vueuse: {
ssrHandlers: true,
},
unocss: {
uno: true,
attributify: true,
preflight: true,
icons: {
scale: 1.2,
},
shortcuts: [
['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
],
},
colorMode: {
classSuffix: '',
},
})