You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whitespace stripping is probably one of the hardest (and most error prone) optimizations the minifier does anyway, as it must be kept inside strings & regular expressions, when it serves as ASI, inside CSS calc statements, ...
I'd hardly call it a safe optimization :)
If you do run into minify issues, please submit issues for all of them, and I'll work on resolving them in a timely manner :)
What I had in mind, is something along the lines of Closure Compiler, whitespace only removal. https://closure-compiler.appspot.com/home
By safe, I meant to say, no text replacements, such as black to #000 (#316) or replacing function names or variables with shorten versions.
It would be great if somehow you can take care of the white space first and have a return option there, before proceeding to the text code replacements. That way, we could preserve the code as it is and remove only the white space.
Being safe or not is another matter, but it's probably safer to just remove the white space than to change code and variable names / values, etc.
Hi there,
I usually have to minify lots of different js files from different origins, and what I notice is that sometimes PHP Minify breaks some JS code.
Is there a way to only select "safe optimizations", such as white space only, while preserving all code as it is?
The text was updated successfully, but these errors were encountered: