I’d like to know how can i inform my Vue/F7 instance of the environment, hence where to put that if (process.env.NODE_ENV === 'development') conditional.
Currently i’m using this (ugly, in my opinion) workaround, setting an ENV property on the global object and then reading it in my scripts:
Damn i didn’t think it worked… i had tried logging process.env in my app.js and it was an empty object, but now i directly tried to log the NODE_ENV property and it was there.
That’s a mistery to me, but i’m happy it’s working.
Thanks!!