-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
42 lines (41 loc) · 917 Bytes
/
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
import svgLoader from 'vite-svg-loader'
import { fileURLToPath, URL } from 'url'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ['~/assets/styles/index.css'],
components: true,
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt',
'@nuxtjs/color-mode',
'@nuxtjs/google-fonts',
],
colorMode: {
classSuffix: '',
},
vite: {
plugins: [
svgLoader(), // https://github.com/jpkleemans/vite-svg-loader#readme
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./', import.meta.url)),
},
},
},
tailwindcss: {
viewer: true,
configPath: '~/tailwind.config.ts',
},
googleFonts: {
download: true,
preload: true,
outputDir: './assets/fonts',
overwriting: false,
inject: true,
base64: true,
families: {
Outfit: [200, 300, 400, 500, 600, 700, 800],
},
},
})