Mercurial > code > home > repos > pi_mqtt
diff vite.config.ts @ 0:3989f073ed9e
start. hardcoded motion light in garage
author | drewp@bigasterisk.com |
---|---|
date | Thu, 24 Aug 2023 16:28:05 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vite.config.ts Thu Aug 24 16:28:05 2023 -0700 @@ -0,0 +1,29 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + root: "src", + base: "/pi-mqtt/", + 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: {}, + }, +});