Mercurial > code > home > repos > racc
diff console/vite.config.ts @ 6:b1043d39e493
start web console
author | drewp@bigasterisk.com |
---|---|
date | Mon, 13 Mar 2023 18:53:45 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/console/vite.config.ts Mon Mar 13 18:53:45 2023 -0700 @@ -0,0 +1,30 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + base: "https://bigasterisk.com/racc/console/", + server: { + host: "0.0.0.0", + strictPort: true, + port: 8002, + hmr: { path: "vite-ws" }, + fs: { allow: ["src", "node_modules", "."] }, + }, + build: { + assetsDir: "src", + target: "esnext", + lib: { + entry: "src/index.ts", + formats: ["es"], + }, + rollupOptions: { + // input: { app: "src/index.html" }, + external: /^lit/, + }, + }, + resolve: { + alias: [{ find: "rdf-canonize-native", replacement: "" }], + }, + define: { + global: {}, + }, +});