explorer-app/nuxt.config.ts

56 lines
1,013 B
TypeScript
Raw Normal View History

2023-12-19 18:43:42 +01:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxt/eslint',
2023-12-19 18:43:42 +01:00
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
'@nuxtjs/color-mode',
'@nuxt/devtools',
'nuxt-lodash',
'nuxt-headlessui',
'@nuxt/image',
],
sourcemap: {
server: true,
client: false,
},
pinia: {
storesDirs: ['~/composables'],
},
experimental: {
// when using generate, payload js assets included in sw precache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
// typedPages: true,
componentIslands: true,
},
css: [
'@unocss/reset/tailwind.css',
],
colorMode: {
classSuffix: '',
},
eslint: {
config: {
stylistic: true,
},
},
2023-12-19 18:43:42 +01:00
nitro: {
preset: 'vercel',
esbuild: {
options: {
target: 'esnext',
},
},
},
vite: {
build: {
target: 'esnext',
},
},
lodash: {
prefix: '_',
},
})