-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
61 lines (50 loc) · 1.01 KB
/
nuxt.config.ts
File metadata and controls
61 lines (50 loc) · 1.01 KB
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
import tailwindcss from '@tailwindcss/vite'
import pkg from './package.json'
const isDevMode = process.env.NODE_ENV !== 'production'
export default defineNuxtConfig({
runtimeConfig: {
public: {
appVersion: pkg.version,
},
},
compatibilityDate: '2025-01-01',
future: {
compatibilityVersion: 4,
},
ssr: false,
router: {
options: {
hashMode: true,
},
},
app: {
cdnURL: './',
},
devServer: {
port: 3133,
},
modules: ['shadcn-nuxt'],
shadcn: {
prefix: '',
componentDir: './app/components/ui',
},
vite: {
plugins: [tailwindcss()],
build: {
sourcemap: isDevMode,
target: 'es2020',
minify: 'terser',
terserOptions: {
compress: {
drop_console: false,
pure_funcs: ['console.log', 'console.debug', 'console.info', 'console.warn'],
},
format: {
comments: false,
},
},
},
},
css: ['~/assets/css/tailwind.css'],
devtools: { enabled: false },
})