mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
changed build workflow – for auth it's required to have better control over html and assets
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import devServer from "@hono/vite-dev-server";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vite";
|
||||
import { viteStaticCopy } from "vite-plugin-static-copy";
|
||||
import { defineConfig, loadEnv } from "vite";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
@@ -45,18 +44,5 @@ export default defineConfig(async () => {
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
define: {
|
||||
__isDev: "0"
|
||||
},
|
||||
publicDir: "./src/ui/assets",
|
||||
build: {
|
||||
manifest: true,
|
||||
outDir: "dist/static"
|
||||
/*rollupOptions: { // <-- use this to not require index.html
|
||||
input: "./src/ui/main.tsx"
|
||||
}*/
|
||||
},
|
||||
plugins: [react(), tsconfigPaths()]
|
||||
} as any;
|
||||
throw new Error("Don't use vite for building in production");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user