-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
54 lines (43 loc) · 1.08 KB
/
Copy pathnuxt.config.ts
File metadata and controls
54 lines (43 loc) · 1.08 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
import vite from './nuxt-config/vite'
import { createResolver } from '@nuxt/kit'
import bugsnag from './nuxt-config/bugsnag'
import { defineNuxtConfig } from 'nuxt/config'
const isProduction = process.env.NODE_ENV === 'production'
const { resolve } = createResolver(import.meta.url)
export default defineNuxtConfig({
vite,
bugsnag,
devtools: { enabled: true },
alias: { '@shared': resolve('./app') },
css: [resolve('./app/assets/tailwind.css')],
typescript: {
tsConfig: {
compilerOptions: {
paths: {
'@': ['.'],
'@/*': ['./*']
}
}
}
},
ignore: isProduction ? ['pages/sandbox.vue'] : [],
sourcemap: {
client: true,
server: false
},
components: [{ prefix: 'Shared', path: resolve('./app/components') }],
pinia: {
storesDirs: ['store/**']
},
modules: [
'@nuxt/ui',
'@pinia/nuxt',
'@vueuse/nuxt',
'@nuxtjs/i18n',
'@nuxt/eslint',
'nuxt-vitalizer',
'@nuxt/test-utils/module',
['@injectivelabs/nuxt-bugsnag', bugsnag],
resolve('./modules/preload-optimization')
]
})