Print at Dec 17, 2025, 8:40:19 AM

Posted by buzzz at May 22, 2023, 11:42:07 AM
Debug & sweethome3D.min.js
Hi all,

I succeed in building all the ant projects of sweethomeJS repo.
Now, I play with the jsp/Tomcat demo on my machine.
Neverthetless, I notice that the main js files have been minimized for performance optimization I suppose.
As I want to had some code in the software, I would greatly prefer to use a non minified version, with existing code comments.

For this, I look at the build.xml file and I remove the following lines :

<java jar="${yuicompressor.jar}" fork="true" failonerror="true">
<arg value="dist/build/sweethome3d.min.js" />
<arg value="-o" />
<arg value="dist/build/sweethome3d.min.js" />
</java>


From the little I understand, this command minified sweethome3d.min.js by overwritting the current file.

Nevertheless, when I remove these lines, the sweethome3d.min.js only contains very few lines of code unlike the 100,000 lines of code that should be present.

Im sure I miss something