We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f92dad commit c6ffa1eCopy full SHA for c6ffa1e
vite.config.ts
@@ -3,7 +3,23 @@ import react from "@vitejs/plugin-react-swc";
3
import mkcert from "vite-plugin-mkcert";
4
5
export default defineConfig({
6
- plugins: [mkcert(), react()],
+ plugins: [
7
+ mkcert(),
8
+ react(),
9
+ {
10
+ name: "add-session-token-banner",
11
+ generateBundle(_, bundle) {
12
+ for (const file of Object.values(bundle)) {
13
+ if (file.type === "chunk" && file.fileName === "main.js") {
14
+ file.code = "/** SESSION_TOKEN */\n" + file.code;
15
+ }
16
17
+ },
18
19
+ ],
20
+ server: {
21
+ port: 9545,
22
23
build: {
24
outDir: "dist",
25
assetsDir: ".",
0 commit comments