mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
52 lines
991 B
TypeScript
52 lines
991 B
TypeScript
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||
|
export default defineNuxtConfig({
|
||
|
modules: [
|
||
|
'@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,
|
||
|
inlineSSRStyles: false,
|
||
|
reactivityTransform: true,
|
||
|
// typedPages: true,
|
||
|
componentIslands: true,
|
||
|
},
|
||
|
css: [
|
||
|
'@unocss/reset/tailwind.css',
|
||
|
],
|
||
|
colorMode: {
|
||
|
classSuffix: '',
|
||
|
},
|
||
|
nitro: {
|
||
|
preset: 'vercel',
|
||
|
esbuild: {
|
||
|
options: {
|
||
|
target: 'esnext',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
vite: {
|
||
|
build: {
|
||
|
target: 'esnext',
|
||
|
},
|
||
|
},
|
||
|
lodash: {
|
||
|
prefix: '_',
|
||
|
},
|
||
|
})
|