-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
38 lines (33 loc) · 862 Bytes
/
nuxt.config.ts
File metadata and controls
38 lines (33 loc) · 862 Bytes
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
export default defineNuxtConfig({
ssr: false,
devtools: { enabled: false },
modules: [
'@pinia/nuxt',
],
css: ['~/assets/css/main.css'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
vite: {
clearScreen: false,
envPrefix: ['VITE_', 'TAURI_'],
server: {
strictPort: true,
},
resolve: {
dedupe: ['vue'],
},
build: {
// Disable auto-generated <link rel="modulepreload"> tags. In a Tauri
// SPA the user rarely navigates to all routes immediately, so the
// browser warns "resource preloaded but not used within a few seconds"
// for every unused chunk (55+ per session). Loading from local app
// resources is fast enough that we don't need the prefetch.
modulePreload: false,
},
},
compatibilityDate: '2024-11-01',
})