When I save files in my project Wappler is reorganizing js files and completely breaks the page. I just open the file and save it. I haven’t had these problem in former versions of Wappler.
It seem that the problem happens when this code is not directly before the closing head tag:
<!-- This goes in head tags -->
<script src="../_cookies/js/trackingController.js"></script>
<?php include '../_cookies/trackingController.php' ?>
<!-- /This goes in head tags -->
We figured out that it is the php include indeed that causes problems, it happens when a php included is added to the head section, any code that comes after the php include doesn’t get detected and is added again.
For now the solution is to move the php includes in the head to the end.