love this concise demo.. but it was not working on window box :(
as per vue-cli-service modes documentation, NODE_ENV will be set to "development" in development mode automatically.
so replace 'DEV' to if (process.env.NODE_ENV === 'development') will do the trick on windows.
it will probably will work on linux as well, by I didn't confirmed it.
btw: fire up electron need also using something like cross-env: cross-env NODE_ENV=development electron app.js.
love this concise demo.. but it was not working on window box :(
as per vue-cli-service modes documentation, NODE_ENV will be set to "development" in development mode automatically.
so replace 'DEV' to
if (process.env.NODE_ENV === 'development')
will do the trick on windows. it will probably will work on linux as well, by I didn't confirmed it.btw: fire up electron need also using something like cross-env:
cross-env NODE_ENV=development electron app.js
.