electron-webpack
electron-webpack copied to clipboard
Can't get .env to work
Hi, I'm having trouble using a .env file in my project. I created a file ".env" with the following content in my project in the same folder as my package.json.
ELECTRON_WEBPACK_APP_SSH_DEFAULT_HOST=myhost
I'm trying to access this with:
process.env.ELECTRON_WEBPACK_APP_SSH_DEFAULT_HOST
I start the app using this script:
electron-webpack dev
Why is it not working? I printed the complete process.env. But my variable is nowhere to be found. I'm using electron-webpack: "^2.8.2"
electron-builder.env is useless too.