view web/vite.config.ts @ 2409:ba2f00912e20

fix white output on RGBW devices
author drewp@bigasterisk.com
date Sat, 18 May 2024 22:43:43 -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()],
});