https://cdn.babylonjs.com/babylon.max.js
Yeah, dunno if this is just me but babylon.max.js is minified? Seems a lil odd?
https://cdn.babylonjs.com/babylon.max.js
Yeah, dunno if this is just me but babylon.max.js is minified? Seems a lil odd?
cc @docEdub
It was changed to the minified version 6 months ago to reduce memory usage during builds.
See Remove build dev from non-tooling UMD packages and copy their minifie… · BabylonJS/Babylon.js@6c5e718 · GitHub and https://github.com/BabylonJS/Babylon.js/pull/16760 for details.
Do you need an unminified version of babylon.max.js?
So, why keep the max version if babylon.max.js == babylon.js
The two files are identical.
Babylon.max.js should be removed, right? It just becomes a file named different and it’s misleading. babylon.max.js, we expect a file that is not minimized.
I agree it is misleading but not so misleading that we would remove it outright and break code relying on it. Backward compatibility is considered more important in this case, and if an unminified version is 100% needed then it is fairly easy to build Babylon.js locally in development mode.
@Dad72 are you using the max version in some specific cases ?
We can deploy back a truly unminified one but we thought the map files would be enough.
No, I don’t specifically need the unminified version. I was just reacting to the fact that I found it strange to keep the max.js version, if it is identical to the min.js version.
Just remove the .max and the projects will work the same. I don’t really understand the backwards compatibility problem. Nothing is broken, since it is just necessary that those who use max.js, update. It doesn’t cost a lot of effort.
I just gave my opinion.
oh yup totally agree ![]()
The main issue is that some projects are relying on the files manually with the current name and unfortunately it would force them to update the path. The easiest trick for us was to keep it there so that nobody would even notice… or almost nobody ![]()
Perhaps babylon.max.js should be setup to redirect to babylon.js, or have a comment added at the top to signify this change.
Can someone point me to the building instructions?
Build instructions are here:
https://doc.babylonjs.com/contribute/toBabylon/HowToContribute/#the-build