-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.js
79 lines (78 loc) · 2.85 KB
/
vite.config.js
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
import path from 'node:path';
import { normalizePath } from 'vite';
export default {
plugins: [],
root: normalizePath(path.resolve(__dirname, 'src')),
build: {
outDir: '../dist',
rollupOptions: {
input: {
buttons: normalizePath(
path.resolve(__dirname, 'src/pages/components/buttons.html')
),
forms: normalizePath(
path.resolve(__dirname, 'src/pages/components/forms.html')
),
modals: normalizePath(
path.resolve(__dirname, 'src/pages/components/modals.html')
),
notifications: normalizePath(
path.resolve(
__dirname,
'src/pages/components/notifications.html'
)
),
typography: normalizePath(
path.resolve(
__dirname,
'src/pages/components/typography.html'
)
),
not_found: normalizePath(
path.resolve(__dirname, 'src/pages/examples/404.html')
),
internal_error: normalizePath(
path.resolve(__dirname, 'src/pages/examples/500.html')
),
forgot_password: normalizePath(
path.resolve(
__dirname,
'src/pages/examples/forgot-password.html'
)
),
lock: normalizePath(
path.resolve(__dirname, 'src/pages/examples/lock.html')
),
reset_password: normalizePath(
path.resolve(
__dirname,
'src/pages/examples/reset-password.html'
)
),
signin: normalizePath(
path.resolve(__dirname, 'src/pages/examples/sign-in.html')
),
signup: normalizePath(
path.resolve(__dirname, 'src/pages/examples/sign-up.html')
),
starter: normalizePath(
path.resolve(__dirname, 'src/pages/examples/starter.html')
),
bootstrap_tables: normalizePath(
path.resolve(
__dirname,
'src/pages/tables/bootstrap-tables.html'
)
),
datatables: normalizePath(
path.resolve(__dirname, 'src/pages/tables/datatables.html')
),
index: normalizePath(path.resolve(__dirname, 'src/index.html')),
},
},
},
base: '/haste-dashboard/',
server: {
port: 3030,
},
};