forked from antfu/eslint-flat-config-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
55 lines (47 loc) · 958 Bytes
/
nuxt.config.ts
File metadata and controls
55 lines (47 loc) · 958 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import pkg from './package.json'
export default defineNuxtConfig({
ssr: false,
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
],
experimental: {
// when using generate, payload js assets included in sw precache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
inlineSSRStyles: false,
renderJsonPayloads: true,
typedPages: true,
},
css: [
'@unocss/reset/tailwind.css',
],
nitro: {
preset: 'node-server',
output: {
dir: './dist',
},
sourceMap: false,
externals: {
external: Object.keys(pkg.dependencies),
},
},
app: {
head: {
viewport: 'width=device-width,initial-scale=1',
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
],
},
},
vite: {
vue: {
script: {
defineModel: true,
},
},
},
devtools: {
enabled: true,
},
})