/ concept-collection / hitandrun-interactive
Sign in
concept-collection / hitandrun-interactive
hitandrun-interactive / app / vite.config.ts
16 lines · 586 BCodeBlameHistory
9fbdc3eInteractive hit-and-run sampling of a 2D convex regionJeremy Magland 1import { defineConfig } from "vite";
2import react from "@vitejs/plugin-react";
3import { viteSingleFile } from "vite-plugin-singlefile";
5// Builds the whole app (JS + CSS) inlined into a single dist/index.html, so the
6// numbl `.m` can read it with `fileread` and pass it to uihtml (HTMLSource) —
7// no supporting files, works in numbl (browser and CLI) and real MATLAB.
8export default defineConfig({
9 plugins: [react(), viteSingleFile()],
10 build: {
11 target: "esnext",
12 cssCodeSplit: false,
13 assetsInlineLimit: 100_000_000,
14 chunkSizeWarningLimit: 100_000_000,
15 },
16});
moveopenescclose