vite.config.ts 439 B

123456789101112131415161718192021
  1. import { defineConfig } from "vite";
  2. import react from "@vitejs/plugin-react";
  3. export default defineConfig({
  4. root: "ui",
  5. plugins: [react()],
  6. publicDir: "pub",
  7. base: "/s/",
  8. build: {
  9. outDir: "../internal/ui/assets",
  10. chunkSizeWarningLimit: 10000,
  11. assetsDir: ".",
  12. emptyOutDir: true,
  13. rollupOptions: {
  14. input: {
  15. edit: "./ui/edit/index.html",
  16. links: "./ui/index.html",
  17. },
  18. },
  19. },
  20. });