view vite.config.ts @ 13:3014db0a5500 default tip

mv board to proj/micro, rename this repo with dashes
author drewp@bigasterisk.com
date Fri, 28 Jun 2024 17:08:09 -0700
parents 4365c72c59f6
children
line wrap: on
line source

import { defineConfig } from "vite";

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