-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
64 lines (55 loc) · 1.21 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
58
59
60
61
62
63
64
/* eslint-disable @typescript-eslint/ban-ts-comment */
import vuetify from 'vite-plugin-vuetify'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
nitro: {
compressPublicAssets: true,
},
sourcemap: {
server: true,
client: true
},
build: { transpile: ['vuetify'] },
modules: [
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@nuxtjs/tailwindcss',
'@nuxt/devtools',
async (options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) =>
// @ts-ignore
config.plugins.push(vuetify())
)
},
],
pinia: {
autoImports: [
// automatically imports `defineStore`
'defineStore', // import { defineStore } from 'pinia'
['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia'
],
},
image: {
provider: 'ipx',
screens: {
xs: 0,
sm: 600,
md: 960,
lg: 1280,
xl: 1920,
},
},
app: {
head: {
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/gelbooru-logo.svg' }
]
}
},
css: ['~/assets/css/global.css'],
devtools: {
timeline: {
enabled: true
}
}
})