2024-10-04 17:43:45 +02:00
|
|
|
import { defineConfig } from 'vite';
|
2024-10-04 20:47:49 +02:00
|
|
|
import vue from '@vitejs/plugin-vue';
|
2024-10-04 17:43:45 +02:00
|
|
|
import { resolve } from 'path';
|
2025-07-16 17:12:49 +02:00
|
|
|
import injectMetaTags from './injectMetaTags.vite.plugin.js';
|
2025-07-11 16:10:03 +02:00
|
|
|
|
2024-10-04 17:43:45 +02:00
|
|
|
export default defineConfig({
|
2024-12-13 22:29:34 +01:00
|
|
|
plugins: [
|
2025-07-11 15:16:20 +02:00
|
|
|
vue(),
|
2025-07-16 17:12:49 +02:00
|
|
|
injectMetaTags([
|
|
|
|
|
resolve('activation.html'),
|
|
|
|
|
resolve('filemanager.html'),
|
|
|
|
|
resolve('index.html'),
|
|
|
|
|
resolve('oidc_login.html'),
|
|
|
|
|
resolve('oidc_error.html'),
|
|
|
|
|
resolve('oidc_interaction_confirm.html'),
|
|
|
|
|
resolve('oidc_interaction_abort.html'),
|
|
|
|
|
resolve('logs.html'),
|
|
|
|
|
resolve('passwordreset.html'),
|
|
|
|
|
resolve('restore.html'),
|
|
|
|
|
resolve('setup.html'),
|
|
|
|
|
resolve('setupaccount.html'),
|
|
|
|
|
resolve('terminal.html'),
|
|
|
|
|
]),
|
2024-12-13 22:29:34 +01:00
|
|
|
],
|
2024-10-04 20:47:49 +02:00
|
|
|
server: {
|
|
|
|
|
fs: {
|
|
|
|
|
// Allow serving files from one level up to the project root for monaco editor assets
|
2024-12-26 12:19:48 +01:00
|
|
|
allow: [ '../../../' ]
|
2024-10-04 20:47:49 +02:00
|
|
|
},
|
|
|
|
|
},
|
2024-10-04 17:43:45 +02:00
|
|
|
// https://vitejs.dev/guide/build.html#multi-page-app
|
|
|
|
|
build: {
|
2025-07-16 17:12:49 +02:00
|
|
|
emptyOutDir: false, // we share dist/
|
2025-10-06 21:03:54 +02:00
|
|
|
minify: false,
|
2024-10-04 17:43:45 +02:00
|
|
|
rollupOptions: {
|
|
|
|
|
input: {
|
|
|
|
|
activation: resolve('activation.html'),
|
|
|
|
|
appstatus: resolve('appstatus.html'),
|
|
|
|
|
authcallback: resolve('authcallback.html'),
|
2024-10-04 21:37:17 +02:00
|
|
|
filemanager: resolve('filemanager.html'),
|
2024-10-04 17:43:45 +02:00
|
|
|
index: resolve('index.html'),
|
2025-07-11 12:23:41 +02:00
|
|
|
oidc_login: resolve('oidc_login.html'),
|
2024-12-13 23:02:31 +01:00
|
|
|
oidc_error: resolve('oidc_error.html'),
|
2024-12-14 00:35:31 +01:00
|
|
|
oidc_interaction_confirm: resolve('oidc_interaction_confirm.html'),
|
|
|
|
|
oidc_interaction_abort: resolve('oidc_interaction_abort.html'),
|
2024-10-04 20:47:49 +02:00
|
|
|
logs: resolve('logs.html'),
|
2024-10-04 17:43:45 +02:00
|
|
|
notfound: resolve('notfound.html'),
|
|
|
|
|
passwordreset: resolve('passwordreset.html'),
|
|
|
|
|
restore: resolve('restore.html'),
|
|
|
|
|
setup: resolve('setup.html'),
|
|
|
|
|
setupaccount: resolve('setupaccount.html'),
|
2024-10-04 21:04:08 +02:00
|
|
|
terminal: resolve('terminal.html'),
|
2024-10-04 17:43:45 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|