-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
46 lines (45 loc) · 1.73 KB
/
vite.config.js
File metadata and controls
46 lines (45 loc) · 1.73 KB
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
import webfontDownload from "vite-plugin-webfont-dl";
import version from "vite-plugin-package-version";
import { viteStaticCopy } from "vite-plugin-static-copy";
export default {
appType: 'mpa',
plugins: [
webfontDownload(),
version(),
viteStaticCopy({
targets: [
{
src: 'public/admin/.htaccess',
dest: 'admin',
},
{
src: 'public/ta/.htaccess',
dest: 'ta',
},
],
}),
],
build: {
rollupOptions: {
input: {
main: new URL('index.html', import.meta.url).pathname,
error: new URL('404.html', import.meta.url).pathname,
resetcookies: new URL('resetcookies.html', import.meta.url).pathname,
admin: new URL('admin/index.html', import.meta.url).pathname,
questions: new URL('admin/questions.html', import.meta.url).pathname,
upload: new URL('admin/upload.html', import.meta.url).pathname,
responses: new URL('admin/responses.html', import.meta.url).pathname,
reports: new URL('admin/reports.html', import.meta.url).pathname,
editor: new URL('admin/editor.html', import.meta.url).pathname,
users: new URL('admin/users.html', import.meta.url).pathname,
ta: new URL('ta/index.html', import.meta.url).pathname,
logs: new URL('admin/logs.html', import.meta.url).pathname,
passwords: new URL('admin/passwords.html', import.meta.url).pathname,
backups: new URL('admin/backups.html', import.meta.url).pathname,
archive: new URL('admin/archive.html', import.meta.url).pathname,
courses: new URL('admin/courses.html', import.meta.url).pathname,
taQuestions: new URL('ta/questions.html', import.meta.url).pathname,
},
},
},
};