-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
71 lines (59 loc) · 3.31 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
// vite.config.js
import { resolve } from 'path';
import handlebars from 'vite-plugin-handlebars';
import { defineConfig } from 'vite';
export default defineConfig({
exclude: [ resolve(__dirname, 'node_modules') ],
plugins: [
handlebars({
partialDirectory: resolve(__dirname, './src/partials'),
}),
],
root: './src',
build: {
minify: false,
sourcemap: 'inline',
outDir: '../dist',
rollupOptions: {
input: {
create_stake: resolve(__dirname, './src/create_account_stake_lookup.html'),
create_ward: resolve(__dirname, './src/create_account_ward_lookup.html'),
create_account: resolve(__dirname, './src/create_account.html'),
edit_account_ward_lookup: resolve(__dirname, './src/edit_account_ward_lookup.html'),
edit_account: resolve(__dirname, './src/edit_account.html'),
edit_user_select_stake: resolve(__dirname, './src/edit_user_select_stake.html'),
index: resolve(__dirname, './src/index.html'),
main_account_info: resolve(__dirname, './src/main_account_info.html'),
main_admin_schedule: resolve(__dirname, './src/main_admin_schedule.html'),
main_admin: resolve(__dirname, './src/main_admin.html'),
main_standards: resolve(__dirname, './src/main_standards.html'),
main: resolve(__dirname, './src/main.html'),
schedule: resolve(__dirname, './src/schedule.html'),
sign_in: resolve(__dirname, './src/sign_in.html'),
stake_lookup: resolve(__dirname, './src/stake_lookup.html'),
account_js: resolve(__dirname, './src/scripts/account.js'),
aside_js: resolve(__dirname, './src/scripts/aside.js'),
create_stake_js: resolve(__dirname, './src/scripts/create_account_stake_lookup.js'),
create_ward_js: resolve(__dirname, './src/scripts/create_account_ward_lookup.js'),
create_account_js: resolve(__dirname, './src/scripts/create_account.js'),
edit_stake_js: resolve(__dirname, './src/scripts/edit_account_stake_lookup.js'),
edit_ward_js: resolve(__dirname, './src/scripts/edit_account_ward_lookup.js'),
edit_account_js: resolve(__dirname, './src/scripts/edit_account.js'),
external_service_mjs: resolve(__dirname, './src/scripts/external_services.mjs'),
index_js: resolve(__dirname, './src/scripts/index.js'),
main_account_info_js: resolve(__dirname, './src/scripts/main_account_info.js'),
main_admin_schedule_js: resolve(__dirname, './src/scripts/main_admin_schedule.js'),
main_admin_js: resolve(__dirname, './src/scripts/main_admin.js'),
main_js: resolve(__dirname, './src/scripts/main.js'),
schedule_js: resolve(__dirname, './src/scripts/schedule.js'),
stake_lookup_js: resolve(__dirname, './src/scripts/stake_lookup.js'),
standards_js: resolve(__dirname, './src/scripts/standards.js'),
utils_js: resolve(__dirname, './src/scripts/utils.js'),
// partial_aside: resolve(__dirname, '/partials/aside.html'),
// partial_footer: resolve(__dirname, '/partials/footer.html'),
// partial_head: resolve(__dirname, '/partials/head.html'),
// partial_header: resolve(__dirname, '/partials/header.html'),
},
},
},
});