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';
|
2024-10-30 19:29:20 +01:00
|
|
|
import { NodePackageImporter } from 'sass';
|
2024-10-04 17:43:45 +02:00
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig({
|
2024-10-04 20:47:49 +02:00
|
|
|
plugins: [vue()],
|
|
|
|
|
server: {
|
|
|
|
|
fs: {
|
|
|
|
|
// Allow serving files from one level up to the project root for monaco editor assets
|
|
|
|
|
allow: [ '../..' ]
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-10-04 17:43:45 +02:00
|
|
|
// https://vitejs.dev/guide/build.html#multi-page-app
|
|
|
|
|
build: {
|
|
|
|
|
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'),
|
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
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-10-09 12:52:22 +02:00
|
|
|
// only exists since we also want to use sass to compile theme.css for oidc login views
|
|
|
|
|
css: {
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
scss: {
|
2024-10-30 19:29:20 +01:00
|
|
|
api: 'modern-compiler',
|
|
|
|
|
importers: [ new NodePackageImporter() ],
|
|
|
|
|
quietDeps: true,
|
2024-10-31 10:29:29 +01:00
|
|
|
silenceDeprecations: [ 'import', 'global-builtin' ],
|
2024-10-09 12:52:22 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-10-04 17:43:45 +02:00
|
|
|
});
|