Mercurial > code > home > repos > mqtt_metrics
view vite.config.ts @ 0:0b5b4ede1bf5
start with a mockup of the debugging display
author | drewp@bigasterisk.com |
---|---|
date | Fri, 09 Aug 2024 15:09:22 -0700 |
parents | |
children |
line wrap: on
line source
import { defineConfig } from "vite"; export default defineConfig({ root: "src", base: "/mqtt-metrics/", 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: {}, }, });