Only compile LESS or SASS if minify flag is true
Probably need to rename the minify flag since it now also represents compiling the CSS. Better yet, probably better to eliminate it entirely and make it an assumption that you should only be compiling when on the "local" environment or when the minified file is completely missing.
This commit is contained in:
parent
048a118236
commit
86ef824455
1 changed files with 23 additions and 23 deletions
|
@ -150,6 +150,8 @@ class Dynamic extends Object
|
|||
{
|
||||
$reference = $original_reference;
|
||||
|
||||
if ($this->config->pickles['minify'] === true)
|
||||
{
|
||||
// Compiles LESS & SASS to CSS before minifying
|
||||
if ($less || $sass)
|
||||
{
|
||||
|
@ -173,8 +175,6 @@ class Dynamic extends Object
|
|||
$original_filename = $compiled_filename;
|
||||
}
|
||||
|
||||
if ($this->config->pickles['minify'] === true)
|
||||
{
|
||||
// Minifies CSS with a few basic character replacements.
|
||||
$stylesheet = file_get_contents($original_filename);
|
||||
$stylesheet = str_replace(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue