view web/vite.config.ts @ 2427:cc69faa87c27

tear up and rewrite ascoltami to emit player state into the graph. web ui works but displays nothing but songs
author drewp@bigasterisk.com
date Sat, 25 May 2024 15:44:11 -0700
parents ef3cde3e81e8
children
line wrap: on
line source

import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";

export default defineConfig({
  base: "/",
  root: "./web",
  publicDir: "../node_modules",
  server: {
    host: "0.0.0.0",
    strictPort: true,
    port: 8300,
    hmr: {
      port: 8301,
    },
  },
  clearScreen: false,
  define: {
    global: {},
  },
  plugins: [nodePolyfills()],
});