Sam Wood Posted June 25, 2014 Share Posted June 25, 2014 The minified version of v1.11 keeps parameter names intact, which is very handy while developing. v1.12 is now uglified, so parameter names are no longer useful when examining the function signature. Many js libraries I've used in the past include a map or non-minified version to use while developing. Is there something like that for Babylon? I can certainly examine the source on github when I want to know the order of parameters in a function, but that's slightly painful to do every time . Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 25, 2014 Share Posted June 25, 2014 What I suggest you is to get the babylon folder and use directly the source code as reference like the option 1 here:https://github.com/BabylonJS/Babylon.js/wiki/Creating-the-minified-version Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 26, 2014 Share Posted June 26, 2014 Noticed that yes, parameters are being mangled to reduce minified size . More than just auto completion might be affected though. I remember I published a Java multi-line converter tool earlier. The response I got was: there are pretty print buttons in browsers. Just wonder how difficult this is going to fixing bugs in application code? Is a babylon-debug.js file easily doable? Moon 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 I can produce a debug version which can keep the parameter names Moon and Sam Wood 2 Quote Link to comment Share on other sites More sharing options...
kolar Posted June 28, 2014 Share Posted June 28, 2014 You could use also BuildOurOwnBabylonJS script to create one .js file (it is in babylon repository in babylon\Tools\BuildOurOwnBabylonJS\BuildOurOwnBabylonJS\executables\). gwenael 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.