comparison web/vite.config.ts @ 6:a4659594f2e5

add web page
author drewp@bigasterisk.com
date Sat, 06 Jul 2024 16:44:47 -0700
parents
children
comparison
equal deleted inserted replaced
5:0d520a077228 6:a4659594f2e5
1 import { defineConfig } from "vite";
2
3 export default defineConfig({
4 base: "/sco/",
5 server: {
6 host: "0.0.0.0",
7 strictPort: true,
8 port: 8002,
9 hmr: { path: "vite-ws" },
10 fs: {
11 allow: [
12 // these are relative to config.root which is ./src/
13 ".",
14 "../node_modules",
15 ],
16 },
17 proxy: {
18 "/sco/query": {
19 target: "http://127.0.0.1:8001/",
20 },
21 },
22 },
23 root: "src",
24 build: {
25 assetsDir: "src",
26 target: "esnext",
27 lib: {
28 entry: "src/index.ts",
29 formats: ["es"],
30 },
31 },
32 define: {
33 global: {},
34 },
35 });