mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2025-12-22 08:27:15 +00:00
28 lines
663 B
JavaScript
28 lines
663 B
JavaScript
import path from "path";
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
export default {
|
|
|
|
plugins: [
|
|
vue(),
|
|
],
|
|
|
|
// vite app is loaded from /src/frontend
|
|
root: path.join(__dirname, "src", "frontend"),
|
|
|
|
build: {
|
|
|
|
// we want to compile vite app to /public which is bundled and served by the python executable
|
|
outDir: path.join(__dirname, "public"),
|
|
emptyOutDir: true,
|
|
|
|
rollupOptions: {
|
|
input: {
|
|
// we want to use /src/frontend/index.html as the entrypoint for this vite app
|
|
app: path.join(__dirname, "src", "frontend", "index.html"),
|
|
},
|
|
},
|
|
},
|
|
|
|
}
|