-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
57 lines (52 loc) · 1.25 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
// Doc: https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss', '@nuxtjs/google-fonts', '@pinia/nuxt', '@nuxt/image-edge',
'nuxt-icon'],
app: {
head: {
title:
'Nuxity | Opinionated Nuxt3 Minimal Starter template packed with tailwindcss, google fonts, tailwind aspect ratio & more',
titleTemplate: '%s - Nuxity'
}
},
image: {
// Unsplash uses the imgix provider
// Doc: https://v1.image.nuxtjs.org/providers/unsplash
imgix: {
baseURL: 'https://images.unsplash.com/'
},
presets: {
main: {
modifiers: {
format: 'webp',
fit: 'cover',
quality: '60'
}
}
}
},
imports: {
// store directory for pinia
dirs: ['store']
},
// Doc: https://pinia.vuejs.org/ssr/nuxt.html#nuxt-js
pinia: {
autoImports: [
// automatically imports `defineStore`
// import { defineStore, acceptHMRUpdate } from 'pinia'
'defineStore',
'acceptHMRUpdate'
]
},
// Doc: https://google-fonts.nuxtjs.org/
googleFonts: {
display: 'swap',
families: {
Montserrat: {
wght: [300, 400, 500, 700],
ital: [400, 500, 700]
}
}
}
})