-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnuxt.config.ts
43 lines (42 loc) · 1.26 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
future: {
compatibilityVersion: 3
},
typescript: {
// Enables strict typeCheck for development environment
typeCheck: process.env.NODE_ENV === 'development'
},
nitro: {
compressPublicAssets: true,
routeRules: {
// "/_nuxt/**": { headers: { "cache-control": "max-age=31536000" } }, // Set generated files cache to 1 year
}
},
runtimeConfig: {
public: {
// myValue: process.env.NUXT_PUBLIC_MY_VALUE,
}
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/assets/css/utils/global.scss";'
}
}
}
},
css: ['~/assets/css/main.scss'],
modules: [
'nuxt-security', // https://nuxt.com/modules/security
'@nuxtjs/eslint-module', // https://nuxt.com/modules/eslint | https://eslint.vuejs.org
'@pinia/nuxt', // https://pinia.vuejs.org/ssr/nuxt.html
'@nuxtjs/tailwindcss', // https://tailwindcss.nuxtjs.org
'nuxt-icon', // https://github.com/nuxt-modules/icon | https://icones.js.org/collection/all?s=github
'@vueuse/nuxt', // https://vueuse.org/guide/#nuxt
'@nuxt/image' // https://image.nuxt.com
],
image: {}
})