view web/vite.config.ts @ 2437:26f84fc67ab1

start 2024 show
author drewp@bigasterisk.com
date Wed, 29 May 2024 17:28:01 -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()],
});