I might be late in the game here, but I just had the same issue and found out that if your change is relatively small, instead of re-building whole optimized folder you can simly modify individual file. Look for the build.txt file in optimized-scripts folder. There you can see how individual scripts are groupped together into few large optimized files. Find out which file your original script went to, open it with text editor and modify. Note that optmized files have all whitespaces and linebreaks removed, so it is not super easy to locate code in question and modify it, but, for small changes it is still much easier than re-builiding the whole thing.