Files
cloudron-box/dashboard/vite.config.mjs
Girish Ramakrishnan b3eb6ccde3 x
2025-10-06 21:47:25 +02:00

57 lines
1.8 KiB
JavaScript

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
import injectMetaTags from './injectMetaTags.vite.plugin.js';
export default defineConfig({
plugins: [
vue(),
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'),
]),
],
server: {
fs: {
// Allow serving files from one level up to the project root for monaco editor assets
allow: [ '../../../' ]
},
},
// https://vitejs.dev/guide/build.html#multi-page-app
build: {
emptyOutDir: false, // we share dist/
minify: false,
rollupOptions: {
input: {
activation: resolve('activation.html'),
appstatus: resolve('appstatus.html'),
authcallback: resolve('authcallback.html'),
filemanager: resolve('filemanager.html'),
index: resolve('index.html'),
oidc_login: resolve('oidc_login.html'),
oidc_error: resolve('oidc_error.html'),
oidc_interaction_confirm: resolve('oidc_interaction_confirm.html'),
oidc_interaction_abort: resolve('oidc_interaction_abort.html'),
logs: resolve('logs.html'),
notfound: resolve('notfound.html'),
passwordreset: resolve('passwordreset.html'),
restore: resolve('restore.html'),
setup: resolve('setup.html'),
setupaccount: resolve('setupaccount.html'),
terminal: resolve('terminal.html'),
},
},
},
});