How can I tell if I am in yarn run dev mode in the code of electron+vue.js?

some code in renderer only needs to be run in the version of yarn run build. You don"t have to run in run dev. Are there any environment variables that can determine whether you are in run dev mode or not?

Jun.08,2022

you can see process.env

.
Menu