1
0
mirror of https://github.com/mrclay/minify.git synced 2025-07-31 19:30:29 +02:00

2.1.5 preparation

This commit is contained in:
Steve Clay
2012-03-04 21:14:28 -05:00
parent bcd231eb7c
commit 47b71fada2
4 changed files with 25 additions and 8 deletions

View File

@@ -1,5 +1,14 @@
Minify Release History Minify Release History
Version 2.1.5
* Removed XSS vulnerability
* Disabled builder bby default
* command line tools to minify and rewrite URIs in CSS
* upgrade (optional) JSMin+ library
* more efficient JS minification when using CC/YUIC
* Closure Compiler uses cURL when allow_url_fopen is off
* Missing file notices when using groups
Version 2.1.4 Version 2.1.4
* Option to minify JS with Closure Compiler API w/ JSMin failover * Option to minify JS with Closure Compiler API w/ JSMin failover
* Cookie/bookmarklet-based debug mode. No HTML editing! * Cookie/bookmarklet-based debug mode. No HTML editing!

View File

@@ -214,10 +214,19 @@ var MUB = {
if (location.hash) { if (location.hash) {
// make links out of URIs from bookmarklet // make links out of URIs from bookmarklet
$('#getBm').hide(); $('#getBm').hide();
$('#bmUris').html('<p><strong>Found by bookmarklet:</strong> /<a href=#>' + var i = 0, found = location.hash.substr(1).split(','), l = found.length;
location.hash.substr(1).split(',').join('</a> | /<a href=#>') + $('#bmUris').html('<p><strong>Found by bookmarklet:</strong> /</p>');
'</a></p>' var $p = $('#bmUris p');
); for (; i < l; i++) {
$p.append($('<a href=#></a>').text(found[i])[0]);
if (i < (l - 1)) {
$p.append(', /');
}
}
// $('#bmUris').html('<p><strong>Found by bookmarklet:</strong> /<a href=#>' +
// location.hash.substr(1).split(',').join('</a> | /<a href=#>') +
// '</a></p>'
// );
$('#bmUris a').click(function () { $('#bmUris a').click(function () {
MUB.addButtonClick(); MUB.addButtonClick();
$('#sources li:last input').val(this.innerHTML); $('#sources li:last input').val(this.innerHTML);

View File

@@ -34,10 +34,9 @@ $min_allowDebugFlag = false;
/** /**
* Allow use of the Minify URI Builder app. If you no longer need * Allow use of the Minify URI Builder app. Only set this to true while you need it.
* this, set to false.
**/ **/
$min_enableBuilder = true; $min_enableBuilder = false;
/** /**

View File

@@ -29,7 +29,7 @@ require_once 'Minify/Source.php';
*/ */
class Minify { class Minify {
const VERSION = '2.1.4'; const VERSION = '2.1.5';
const TYPE_CSS = 'text/css'; const TYPE_CSS = 'text/css';
const TYPE_HTML = 'text/html'; const TYPE_HTML = 'text/html';
// there is some debate over the ideal JS Content-Type, but this is the // there is some debate over the ideal JS Content-Type, but this is the