mikeal / vuejs-electron-demo

Simple Vue.js Electron demo
59 stars 22 forks source link

Windows 10: NODE_ENV=DEV not working #1

Open hagaigold opened 6 years ago

hagaigold commented 6 years ago

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.

CabuxaMapache commented 4 years ago

Electron is not starting after vue serve, this is not working at all...

vue-cli-service serve & sleep 5 && electron app.js