Turned off modified time checks for CSS files

There's a note in the code as to why
This commit is contained in:
Josh Sherman 2013-01-13 00:11:44 -05:00
parent 80e6e35191
commit 640727c554
2 changed files with 24 additions and 10 deletions

View file

@ -141,9 +141,18 @@ class Dynamic extends Object
{
$reference = $original_reference;
if (is_writable($path)
&& (!file_exists($minified_filename) || filemtime($original_filename) > filemtime($minified_filename))
&& $this->config->pickles['minify'] === true)
/**
* Disabled the sanity checks because I'm using LESS's @import for
* some hackery and it's not validating as true due to the imported
* file not being interrogated. Should be okay as minifying is now
* a subjective action that's turned on in the config due to the
* issues I had in production with it.
*
* if (is_writable($path)
* && (!file_exists($minified_filename) || filemtime($original_filename) > filemtime($minified_filename))
* && $this->config->pickles['minify'] === true)
*/
if ($this->config->pickles['minify'] === true)
{
// Compiles LESS to CSS before minifying
if ($less)