Remove all "use strict" as we have a mixure of strict and non-strict code (mostly externals libs)

This commit is contained in:
Ralf Becker 2014-01-11 18:39:55 +00:00
parent 43fe37761f
commit ee378ec6b9

View File

@ -161,6 +161,12 @@ $min_symlinks = array();
list($sitePrefix) = explode('/phpgwapi/inc/min/', $_SERVER['REQUEST_URI']);
$min_symlinks['//'.ltrim($sitePrefix, '/')] = dirname(dirname(dirname(__DIR__)));
/**
* Remove all "use strict" as we have a mixure of strict and non-strict code (mostly externals libs)
* and javascript is supposed to run quicker without anyway.
*/
$min_serveOptions['postprocessor'] = function($in){ return str_replace(array('"use strict";', '"use strict"'), '', $in);};
/**
* If you upload files from Windows to a non-Windows server, Windows may report
* incorrect mtimes for the files. This may cause Minify to keep serving stale