vite-ssr icon indicating copy to clipboard operation
vite-ssr copied to clipboard

command "--mode" option become invalid

Open gitsheny opened this issue 2 years ago • 2 comments

when i use command "vite-ssr build --mode test", the mode in vite.config.js is still "development".

gitsheny avatar Jul 11 '22 09:07 gitsheny

"./src/build/index.ts", line:21
const viteConfig = _viteConfig || await resolveViteConfig() why not set param "mode" from "inlineBuildOptions" to "resolveViteConfig"

gitsheny avatar Jul 11 '22 14:07 gitsheny

a temporary solution : "cross-env MODE=test vite-ssr build --mode test",

gitsheny avatar Jul 14 '22 09:07 gitsheny