Follow

Writing some handy debugging code in JS. Have both a 'dev' and a 'prod' build of the eventual merged JS file, would be nice if I could detect in which mode the file was assembled so that I could enable or disable the debugging code based on that. The Elm part is compiled with --optimize in the prod build, perhaps that difference could be detected somehow?

...and thus I end up wasting time digging into Elm internals when a simple if(0) would also suffice.

Sign in to participate in the conversation
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !