forked from productdevbook/oku-nuxt3-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
62 lines (58 loc) · 1.23 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
import { defineNuxtConfig } from "nuxt";
import presetIcons from "@unocss/preset-icons";
export default defineNuxtConfig({
srcDir: "src",
modules: [
"@vueuse/nuxt",
"@nuxtjs/tailwindcss",
// pinia plugin - https://pinia.esm.dev
"@pinia/nuxt",
// unocss plugin - https://github.com/unocss/unocss
"@unocss/nuxt",
"@intlify/nuxt3",
"@nuxtjs/color-mode",
],
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
intlify: {
localeDir: "locales",
vueI18n: {
locale: "en-US",
fallbackLocale: "en-US",
availableLocales: ["en-US", "tr-TR"],
sync: true,
},
},
typescript: {
tsConfig: {
compilerOptions: {
strict: true,
types: ["@pinia/nuxt", "@intlify/nuxt3", "./type.d.ts"],
},
},
},
colorMode: {
classSuffix: "",
fallback: "light",
storageKey: "color-mode",
},
vite: {
logLevel: "info",
},
});