generated from cawa-93/vite-electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
48 lines (44 loc) · 1.02 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
export default defineNuxtConfig({
alias: {
components: './components',
},
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt',
'shadcn-nuxt',
'@nuxtjs/color-mode',
'@pinia/colada-nuxt',
],
compatibilityDate: '2024-09-29',
experimental: {
// to use plugins/node.client.ts
clientNodeCompat: true,
},
shadcn: {
prefix: 'Sh',
componentDir: './components/_shadcn',
},
tailwindcss: {
configPath: 'tailwind.config.js',
},
// Everything below is recomended Tauri config for nuxt
// https://v2.tauri.app/start/frontend/nuxt/
devtools: { enabled: true },
ssr: false,
devServer: { host: '0.0.0.0' },
vite: {
clearScreen: false,
// https://v2.tauri.app/reference/environment-variables/
envPrefix: ['VITE_', 'TAURI_'],
server: {
strictPort: true,
hmr: {
// Use websocket for mobile hot reloading
protocol: 'ws',
// Make sure it's available on the network
host: '0.0.0.0',
port: 5183,
},
},
},
});