command "--mode" option become invalid
gitsheny opened this issue · 2 comments
gitsheny commented
when i use command "vite-ssr build --mode test", the mode in vite.config.js is still "development".
gitsheny commented
"./src/build/index.ts", line:21
const viteConfig = _viteConfig || await resolveViteConfig()
why not set param "mode" from "inlineBuildOptions" to "resolveViteConfig"
gitsheny commented
a temporary solution : "cross-env MODE=test vite-ssr build --mode test",