-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
41 lines (40 loc) · 1.05 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
const envTheme = process.env.VITE_VUE_APP_THEME
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default {
css: [
'~/src/assets/library/primeflex.min.css',
`~/src/assets/themes/${envTheme}/fonts/fonts.css`,
`~/src/assets/themes/${envTheme}/${envTheme}.min.css`,
'primevue/resources/primevue.min.css',
'primeicons/primeicons.css'
],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "~/src/assets/themes/${envTheme}/variables.scss"; @import "~/src/assets/themes/${envTheme}/_mixins.scss";`
},
},
},
},
//components: true,
// components: [
// { path: '~/src/components/', extensions: ['vue'] }
// ],
imports: {
dirs: [
'composables', // top-level modules
'composables/*/index.{ts,js,mjs,mts}' // one level directories's index.js,
]
},
build: {
transpile: [
'primevue'
]
},
runtimeConfig: {
public: {
IMAGE_BASE_URL: process.env['IMAGE_BASE_URL'] || 'https://cms.prod.nypr.digital/images/',
}
},
}