-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
43 lines (42 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
import process from 'node:process'
const isDev: boolean = process.env.NODE_ENV === 'development'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@unocss/nuxt'],
sourcemap: !isDev,
nitro: {
compressPublicAssets: true,
logLevel: 4,
sourceMap: false,
minify: true,
},
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: 'Nuxt 3 minimal app + UnoCSS + Custom SVG Icons',
},
rootId: 'chz',
rootTag: 'section',
},
vite: {
build: {
rollupOptions: {
output: {
entryFileNames: '_nuxt/[hash].js',
chunkFileNames: '_nuxt/[hash].js',
assetFileNames: '_nuxt/[hash][extname]',
},
},
},
},
routeRules: {
'/**': isDev ? {} : { cache: { swr: true, maxAge: 120, staleMaxAge: 60, headersOnly: true } },
},
experimental: {
inlineSSRStyles: false,
},
imports: {
dirs: ['./stores', './locales', './utilities'],
},
})