Mercurial > code > home > repos > front-door-lock
diff vite.config.ts @ 0:4365c72c59f6
start
author | drewp@bigasterisk.com |
---|---|
date | Sun, 27 Aug 2023 11:12:20 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vite.config.ts Sun Aug 27 11:12:20 2023 -0700 @@ -0,0 +1,29 @@ +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: {}, + }, +});