-
Notifications
You must be signed in to change notification settings - Fork 7
/
nuxt.config.ts
45 lines (38 loc) · 1.08 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
export default defineNuxtConfig({
// (optional) Enable the Nuxt devtools
devtools: { enabled: true },
// Enable SSG
ssr: false,
// Enables the development server to be discoverable by other devices for mobile development
telemetry: false,
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
devServer: { host: '0.0.0.0' },
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,
hmr: {
// Use websocket for mobile hot reloading
protocol: 'ws',
// Make sure it's available on the network
host: '0.0.0.0',
// Use a specific port for hmr
port: 5183,
},
},
},
modules: ['@nuxt/icon', '@nuxtjs/tailwindcss', '@nuxtjs/color-mode' ],
css: ['assets/css/main.css'],
compatibilityDate: '2024-12-23'
});