Files
Folo/apps/mobile/web-app/html-renderer/vite.config.mts
T
DIYgod 2881d655ee feat: staging build (#3365)
* feat: move constants isElectronBuild

* feat: move constants isWebBuild

* feat: unified isDev

* feat: unified isProd

* chore: staging build

* update

* fix

* fix

* feat: staging icons

* fix
2025-03-30 22:13:11 +08:00

26 lines
637 B
TypeScript

import path from "node:path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import { viteRenderBaseConfig } from "../../../desktop/configs/vite.render.config"
import { astPlugin } from "../../../desktop/plugins/vite/ast"
const isCI = process.env.CI === "true"
export default defineConfig({
...viteRenderBaseConfig,
base: "",
build: {
outDir: !isCI
? path.resolve(import.meta.dirname, "../../../../out/rn-web/html-renderer")
: "/tmp/rn-web/html-renderer",
},
resolve: {
alias: {
"~": path.resolve(__dirname, "./src"),
},
},
plugins: [react({}), astPlugin],
})