Skip to content

Commit

Permalink
Adds compress option
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jan 4, 2024
1 parent 7b20015 commit 569d652
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/Combine/LessCompile.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ class LessCompile
public function compile($less, $options = [])
{
extract(array_merge([
'vars' => null
'vars' => null,
'compress' => false,
], $options));

$parser = new Less_Parser();
$parser = new Less_Parser([
'compress' => (bool) $compress
]);

$parser->parse($less);

Expand Down
3 changes: 2 additions & 1 deletion src/Combine/ScssCompile.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class ScssCompile
public function compile($scss, $options = [])
{
extract(array_merge([
'vars' => null
'vars' => null,
'compress' => false, // @todo
], $options));

$parser = new Compiler();
Expand Down

0 comments on commit 569d652

Please sign in to comment.