Files
bim_engine/demo/vite.config.js
2025-12-04 18:41:11 +08:00

23 lines
394 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite';
import { resolve } from 'path';
export default defineConfig({
root: '.',
server: {
port: 8080,
open: true,
// 允许访问父目录的文件(用于加载 SDK
fs: {
allow: ['..']
}
},
build: {
outDir: 'dist',
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html')
}
}
}
});