Tags: ster/minify
Tags
Don't strip } when stripping empty tags preceeded by 2 }s Fixes matthiasmullie#92
Merge pull request matthiasmullie#62 from EkkoSense/master Allow URL-rewriting without saving the minified content to the file system
Don't collapse line feeds after "return" return is not guaranteed to be followed by a return value. It could just be "return", followed by nothing (void return), not even a semicolon, just line feed (ASI) Whatever is next could, for example, be another operator. We may just need ASI to kick in there, so keep the line feed after return. Fixes issue matthiasmullie#54
Don't convert standalone arrays "return" looks like it could be a variable of which ['x'] is a key. I've improved the code to also check for keywords. If whatever preceeds it is one of the keywords, don't convert. Fixes issue matthiasmullie#44