view vite.config.ts @ 26:20fa84102643

add loginbar
author drewp@bigasterisk.com
date Thu, 29 Jun 2023 13:57:47 -0700
parents f0a773084a2e
children a7b644dc1b4b
line wrap: on
line source

import { defineConfig } from "vite";

export default defineConfig({
  base: "/video/",
  server: {
    host: "0.0.0.0",
    strictPort: true,
    port: 8002,
    hmr: { path: "vite-ws" },
    fs: {
      allow: [
        // these are relative to config.root which is ./src/
        ".",
        "../node_modules",
      ],
    },
  },
  root: "src",
  build: {
    assetsDir: "src",
    target: "esnext",
    lib: {
      entry: "src/index.ts",
      formats: ["es"],
    },
  },
  define: {
    global: {},
  },
});