-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
101 lines (91 loc) · 1.78 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import postcssGlobalData from '@csstools/postcss-global-data'
import postcssPresetEnv from 'postcss-preset-env'
const currentDir = dirname(fileURLToPath(import.meta.url))
export default defineNuxtConfig({
devtools: {
enabled: true,
},
alias: {
'@nebula': join(currentDir, './'),
},
modulesDir: [
'node_modules',
join(currentDir, './node_modules'),
],
css: [
'@nebula/assets/main.css',
'@nebula/assets/tokens.css',
],
nebula: {
primaryColor: '#7c4ddb',
neutralColor: '#667085',
errorColor: '#F04438',
warningColor: '#F79009',
successColor: '#198754',
},
vite: {
optimizeDeps: {
include: [
'dayjs',
'dayjs/plugin/localeData',
'dayjs/locale/hu',
'dayjs/plugin/isBetween',
],
},
css: {
postcss: {
plugins: [
postcssGlobalData({
files: [
join(currentDir, './assets/viewports.css'),
],
}),
postcssPresetEnv,
],
},
},
},
components: {
dirs: [
{
path: '@nebula/components',
pathPrefix: false,
},
],
},
modules: [
'@nuxt/fonts',
'@nuxt/icon',
'@nuxtjs/color-mode',
'@nuxtjs/i18n',
'@vueuse/nuxt',
'nuxt-typed-router',
],
icon: {
customCollections: [
{
prefix: 'nebula',
dir: join(currentDir, './assets/icons/nebula'),
},
],
},
// typescript: {
// typeCheck: true,
// },
i18n: {
locales: [
{
code: 'en',
file: 'en.json',
},
{
code: 'hu',
file: 'hu.json',
},
],
strategy: 'no_prefix',
},
compatibilityDate: '2024-08-15',
})