-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
nuxt.config.ts
92 lines (86 loc) · 1.86 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
import presetIcons from '@unocss/preset-icons'
export default defineNuxtConfig({
srcDir: 'src',
devtools: true,
modules: [
'@vueuse/nuxt',
'@nuxtjs/tailwindcss',
// pinia plugin - https://pinia.esm.dev
'@pinia/nuxt',
// unocss plugin - https://github.com/unocss/unocss
'@unocss/nuxt',
'@nuxtjs/i18n',
'@nuxtjs/color-mode',
// https://github.com/huntersofbook/huntersofbook/tree/main/packages/naive-ui-nuxt
'@huntersofbook/naive-ui-nuxt',
],
build: {
transpile: ['@headlessui/vue'],
},
unocss: {
uno: false,
preflight: false,
icons: true,
presets: [
presetIcons({
scale: 1.2,
extraProperties: {
display: 'inline-block',
},
}),
],
safelist: ['i-twemoji-flag-us-outlying-islands', 'i-twemoji-flag-turkey'],
},
// localization - i18n config
i18n: {
locales: [
{
code: 'en',
file: 'en-US.json',
},
{ code: 'tr', file: 'tr-TR.json' },
],
defaultLocale: 'tr',
lazy: true,
langDir: 'locales/',
strategy: 'prefix_except_default',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root', // recommended
},
// vueI18n: {
// legacy: false,
// locale: 'tr',
// fallbackLocale: 'tr',
// availableLocales: ['en', 'tr'],
// },
},
typescript: {
tsConfig: {
compilerOptions: {
strict: true,
types: ['@pinia/nuxt', './type.d.ts'],
},
},
},
colorMode: {
classSuffix: '',
fallback: 'light',
storageKey: 'color-mode',
},
tailwindcss: {
configPath: './tailwind.config.js',
},
vite: {
logLevel: 'info',
},
postcss: {
plugins: {
'postcss-nested': {},
'postcss-import': {},
'tailwindcss/nesting': {},
'tailwindcss': {},
},
},
})