-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
80 lines (78 loc) · 2.1 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import {definePreset} from "@primevue/themes";
import Aura from "@primevue/themes/aura";
const AutonomiPreset = definePreset(Aura, {
// Customizations
// semantic: {
// button: {
// border: {
// radius: "10rem",
// },
// },
// },
semantic: {
button: {
background: {
color: "black",
},
},
},
colorScheme: {
light: {
primary: {
color: "#000000",
},
},
dark: {
primary: {
color: "#FF0000",
},
},
},
});
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
// (optional) Enable the Nuxt devtools
devtools: {enabled: true},
// Enable SSG
ssr: false,
// Enables the development server to be discoverable by other devices when running on iOS physical devices
devServer: {host: process.env.TAURI_DEV_HOST || "localhost"},
vite: {
// Better support for Tauri CLI output
clearScreen: false,
// Enable environment variables
// Additional environment variables can be found at
// https://v2.tauri.app/reference/environment-variables/
envPrefix: ["VITE_", "TAURI_"],
server: {
// Tauri requires a consistent port
strictPort: true,
},
},
css: ["~/assets/css/main.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
modules: ["@primevue/nuxt-module", "@pinia/nuxt"],
primevue: {
options: {
ripple: true,
inputVariant: "filled",
theme: {
preset: AutonomiPreset,
options: {
prefix: "p",
darkModeSelector: "autonomi-dark",
cssLayer: {
name: "primevue",
order: "tailwind-base, primevue, tailwind-utilities"
},
},
},
},
},
});