retrixe/decaffeinater

productionMode doesn't work with webpack when npm is not in production mode.

Closed this issue · 4 comments

Webpack bundles the electron-devtools-installer with main.js and does not trigger productionMode. This causes BUGS when you compile, when you install the app and run it, it will run in dev mode. #3 will use python scripts, we could bundle this fix with #3.

OTOH, switching to Webpack killed #3 (except semantic-ui-css is still affected, but that doesn't make a difference because now node_modules is no longer ignored) so Python scripts will be fixing this issue, webpack has obliterated the other issue, pushing commit to close #3 completely.

EDIT: Striked out the semantic-ui-css is still affected, ff59e52 fixes the issue.

ed070ef removes productionMode entirely. To initialize development mode, click on Ctrl+Shift+I 🍭 not a major problem to be honest, rather than sticking environment variables, making build scripts and noobing around with node_modules..

Oh, compensated for lack of react devTools with excellent devtron developer tools :)

To use, type
require("devtron").install();
and done :3

Oh, I'll just bring back React devTools, just see :)