Turned off modified time checks for CSS files
There's a note in the code as to why
This commit is contained in:
parent
80e6e35191
commit
640727c554
2 changed files with 24 additions and 10 deletions
|
@ -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)
|
||||
|
|
19
jar.php
19
jar.php
|
@ -3149,9 +3149,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)
|
||||
|
@ -3240,10 +3249,6 @@ class Dynamic extends Object
|
|||
&& extension_loaded('curl')
|
||||
&& $this->config->pickles['minify'] === true)
|
||||
{
|
||||
echo '-------- ';
|
||||
echo('java -jar ' . PICKLES_PATH . 'vendors/google/closure-compiler/compiler.jar --js=' . $original_filename . ' --compilation_level=' . ($level . '_' . ($level == 'WHITESPACE' ? 'ONLY' : 'OPTIMIZATIONS')) . ' --js_output_file=' . $minified_filename);
|
||||
echo ' -------- ';
|
||||
|
||||
exec('java -jar ' . PICKLES_PATH . 'vendors/google/closure-compiler/compiler.jar --js=' . $original_filename . ' --compilation_level=' . ($level . '_' . ($level == 'WHITESPACE' ? 'ONLY' : 'OPTIMIZATIONS')) . ' --js_output_file=' . $minified_filename);
|
||||
|
||||
$reference = $minified_reference;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue