view vite.config.ts @ 24:1a9a8af1aa19

breadcrumbs and tree view UI
author drewp@bigasterisk.com
date Mon, 17 Apr 2023 13:35:18 -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: {},
  },
});