The main reason the electron build takes so long is the minification process. When we are trying to test whether a change we have made will break the electron build, but have no intention to publish, we should be able to toggle minification off.
Let's add a --no-minify flag to the qri_build electron command. This will add an environment variable NO_MINIFY, that webpack can use to determine whether it should minify the electron app while building.
The main reason the electron build takes so long is the minification process. When we are trying to test whether a change we have made will break the electron build, but have no intention to publish, we should be able to toggle minification off.
Let's add a --no-minify flag to the
qri_build electron
command. This will add an environment variableNO_MINIFY
, that webpack can use to determine whether it should minify the electron app while building.