Open undergroundwires opened 2 years ago
NODE_ENV
is used to set the webpack mode. What's causing the issue is that --mode test
sets NODE_ENV
to test
as well which webpack doesn't like. I'll fix this in v3, and I can backport it to v2 and release a hotfix if you need it. You can also create a .env.test
file with NODE_ENV=production
to fix this.
Thanks. Happy to see you back. You're empowering majority of Vue desktop ecosystem behind the scenes and your work is much appreciated.
Tested using
export NODE_ENV=test & npm run electron:build -- --publish never
vue-cli-service electron:build "--publish" "never" "--mode" "test"
Both fails with:
However they're officially supported Vue modes
https://cli.vuejs.org/guide/mode-and-env.html
and should be supported with vue-cli-plugin-electron-builder too. Maybe we could separate what's being sent to Vue to build and what we use asNODE_ENV
to build?It could also resolve #1626.
I believe it's reproducible with any repository, but I tested with privacy.sexy:
git clone https://github.com/undergroundwires/privacy.sexy.git
git checkout 0.11.3
(because master is subject to change`