Add web interface and tests
This commit is contained in:
21
packages/web/vite.config.ts
Normal file
21
packages/web/vite.config.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { defineConfig } from "vite"
|
||||
import react from "@vitejs/plugin-react"
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
plugins: [react()],
|
||||
define: {
|
||||
global: "globalThis",
|
||||
"process.browser": "true",
|
||||
"process.env.NODE_DEBUG": "false",
|
||||
},
|
||||
build: {
|
||||
outDir: "dist/web",
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
path: require.resolve("path-browserify"),
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user