view vite.config.ts @ 29:35affd4d37d4 default tip

add 1st ikea color light
author drewp@bigasterisk.com
date Sat, 14 Dec 2024 22:36:29 -0800
parents 5a77696c6dab
children
line wrap: on
line source

import { defineConfig } from "vite";

export default defineConfig({
  root: "src",
  base: "/light-bridge/",
  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: {},
  },
});