-
Notifications
You must be signed in to change notification settings - Fork 17
/
nuxt.config.ts
57 lines (57 loc) · 1.27 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
export default defineNuxtConfig({
modules: [
'@vueuse/nuxt',
'@pinia/nuxt',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@intlify/nuxt3',
],
experimental: {
reactivityTransform: true,
viteNode: false,
},
plugins: [
],
colorMode: {
classSuffix: '',
},
// https://github.com/nuxt/framework/issues/6204#issuecomment-1201398080
hooks: {
'vite:extendConfig': function (config: any, { isServer }: any) {
if (isServer) {
// Workaround for netlify issue
// https://github.com/nuxt/framework/issues/6204
config.build.rollupOptions.output.inlineDynamicImports = true
}
},
},
css: [
// 'primevue/resources/themes/bootstrap4-dark-blue/theme.css',
// 'primevue/resources/primevue.css',
// 'primeicons/primeicons.css',
'/assets/css/style.css',
],
build: {
transpile: ['primevue', 'pinia-orm'],
},
tailwindcss: {
cssPath: '~/assets/css/tailwind.css',
configPath: 'tailwind.config.js',
exposeConfig: true,
injectPosition: 0,
viewer: true,
},
vue: {
config: {
productionTip: true,
warn: false,
},
compilerOptions: {
isCustomElement: tag => tag.startsWith('ion-'),
},
},
loading: {
color: 'blue',
height: '5px',
},
})