Closed GoogleCodeExporter closed 8 years ago
This is a known issue, I probably need to warn about it in the documentation.
I don't think I will be able to come up with a solution for this.
When it preserves PHP blocks (or any other custom blocks) it replaces them with
%%%~COMPRESS~USERX~X~%%% palceholder, which is incorrect javascript. I can
change placeholder to something like /*%%%~COMPRESS~USERX~X~%%%*/, but it still
could cause errors in many places:
var i = /*...*/; //syntax error
The only solution would be to not compress inline js if it is mixed with php
blocks. You can skip this single piece of javascript if you wrap it with <!--
{{{ -->...<!-- }}} --> skip block.
Original comment by serg472@gmail.com
on 15 Sep 2011 at 3:13
Ahhh, fair enough. Sorry for dragging it up. I had seen a similar issue from
July so wasn't sure if it was an edge case that was missed or something.
That skip block solution will do me perfectly now I know what to look out for.
Thanks for the responding so quickly and for this great package.
Original comment by jd200...@gmail.com
on 15 Sep 2011 at 3:20
Glad that you like the project.
Thanks :)
Original comment by serg472@gmail.com
on 15 Sep 2011 at 3:34
Original issue reported on code.google.com by
jd200...@gmail.com
on 15 Sep 2011 at 9:43Attachments: