mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
Introduced a Vite adapter with "fresh" and "cached" modes, centralized dev server configuration, and streamlined the example setup. Updated documentation with detailed steps for Vite integration and revised the internal dev environment to align with the changes.
30 lines
654 B
TypeScript
30 lines
654 B
TypeScript
import devServer from "@hono/vite-dev-server";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { devServerConfig } from "./src/adapter/vite/dev-server-config";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
define: {
|
|
__isDev: "1"
|
|
},
|
|
clearScreen: false,
|
|
publicDir: "./src/admin/assets",
|
|
server: {
|
|
host: true,
|
|
port: 28623,
|
|
hmr: {
|
|
overlay: true
|
|
}
|
|
},
|
|
plugins: [
|
|
react(),
|
|
tsconfigPaths(),
|
|
devServer({
|
|
...devServerConfig,
|
|
entry: "./vite.dev.ts"
|
|
})
|
|
]
|
|
});
|