Mercurial > code > home > repos > front-door-lock
view vite.config.ts @ 1:3b82ee3b9d79
cleanup
author | drewp@bigasterisk.com |
---|---|
date | Sun, 27 Aug 2023 11:20:30 -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: {}, }, });