Replies: 1 comment 4 replies
-
When using Rsbuild, you can judge that it is running on a local server from |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description of two fields in rsbuild:
If use rsbuild, writing
import.meta.env.DEV
is actually equal toimport.meta.env.MODE === 'development'
So what's the point of
import.meta.env.DEV
|import.meta.env.PROD
?in vite:
I can judge by
import.meta.env.DEV
that it is running on a local server to do development. Why not maintain consistency with Vite instead of declaring redundant fields?Beta Was this translation helpful? Give feedback.
All reactions