Mercurial > code > home > repos > front-door-display
view vite.config.ts @ 21:a90cb6927c7d default tip
fix countdown queries. Display "now" instead of "In -0.4 hours"
author | drewp@bigasterisk.com |
---|---|
date | Sat, 07 Sep 2024 17:47:36 -0700 |
parents | 045013c772ed |
children |
line wrap: on
line source
import { defineConfig } from "vite"; export default defineConfig({ root: "src", base: "/front-door-display/", server: { host: "0.0.0.0", strictPort: true, port: 8002, 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"], }, rollupOptions: { // input: { app: "src/index.html" }, external: /^lit/, }, }, resolve: { alias: [{ find: "rdf-canonize-native", replacement: "" }], }, // define: { // global: {}, // }, });