jibinam / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Needs a PHP version of getBestUri as used in JS (Provided) #294

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I translated parts of the MUB object into PHP, and I thought I'd give my result 
as I could find no such thing on the internet. This allows php apps to build 
minify urls on the fly. Perhaps it could be included in the minify download.

See attachment.

Original issue reported on code.google.com by danumbah...@gmail.com on 8 Aug 2013 at 9:34

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There was a bug in the previous version. Here is the fix.

Original comment by danumbah...@gmail.com on 8 Aug 2013 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, but this logic is already present: 
http://code.google.com/p/minify/source/browse/min/lib/Minify/HTML/Helper.php#187

See the file min/utils.php for usage.

If you can improve on that algorithm feel free to make a pull request here or 
on github.

Original comment by mrclay....@gmail.com on 9 Aug 2013 at 2:52

GoogleCodeExporter commented 9 years ago
Ok thanks!

Original comment by danumbah...@gmail.com on 14 Aug 2013 at 11:39