-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
51 lines (50 loc) · 1.3 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
import { fileURLToPath } from 'url'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
alias: {
"@components": fileURLToPath(new URL('./components', import.meta.url)),
"@types": fileURLToPath(new URL('./types', import.meta.url)),
"@assets": fileURLToPath(new URL('./assets', import.meta.url)),
},
// Global CSS: https://nuxt.com/docs/api/configuration/nuxt-config#css
css: ['@assets/styles/reset.scss', "@assets/styles/global.scss"],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "~/assets/styles/vars.scss"; @import "~/assets/styles/utilities.scss";',
},
},
},
},
modules: [
'@nuxt/content',
'vue3-carousel-nuxt',
"@nuxt/image",
],
carousel: {
prefix: 'custom',
},
image: {
format: ['webp']
},
content: {
documentDriven: true,
highlight: {
theme: 'light-plus'
}
},
nitro: {
// define preset for nitro and which backend to serve the project
preset: "node-server",
prerender: {
crawlLinks: true,
ignore: ['/api']
}
},
// Plugins to run before rendering page: https://nuxt.com/docs/api/configuration/nuxt-config#plugins-1
plugins: [
{ src: '~/plugins/webcomponents.ts', mode: 'client' },
],
})