retrixe / decaffeinater

Sometimes games give you overdoses. This one will help you set a timer to limit yourself.
Apache License 2.0
1 stars 0 forks source link

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

Closed retrixe closed 7 years ago

retrixe commented 7 years ago

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.

retrixe commented 7 years ago

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.

retrixe commented 7 years ago

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

retrixe commented 7 years ago

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

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

retrixe commented 7 years ago

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