33 lines
961 B
JavaScript
33 lines
961 B
JavaScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import { resolve } from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
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: {
|
|
rollupOptions: {
|
|
input: {
|
|
activation: resolve('activation.html'),
|
|
appstatus: resolve('appstatus.html'),
|
|
authcallback: resolve('authcallback.html'),
|
|
index: resolve('index.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'),
|
|
},
|
|
},
|
|
},
|
|
});
|