Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added sourcemap (sass >= 3.3) support to SassFilter #542

Merged
merged 1 commit into from

6 participants

Voydz Heinrich Fenkart fgreinus Daniel Gomes Artem Lopata Kris Wallsmith
Voydz

Just an addition to sass filter:

  • supporting sass 3.3 sourcemap
Heinrich Fenkart

+1 :+1:

Daniel Gomes

+1 :+1:

Kris Wallsmith kriswallsmith merged commit e53ece1 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 12, 2013
  1. Voydz
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/Assetic/Filter/Sass/SassFilter.php
10 src/Assetic/Filter/Sass/SassFilter.php
View
@@ -39,6 +39,7 @@ class SassFilter extends BaseProcessFilter implements DependencyExtractorInterfa
private $quiet;
private $debugInfo;
private $lineNumbers;
+ private $sourceMap;
private $loadPaths = array();
private $cacheLocation;
private $noCache;
@@ -81,6 +82,11 @@ public function setLineNumbers($lineNumbers)
$this->lineNumbers = $lineNumbers;
}
+ public function setSourceMap($sourceMap)
+ {
+ $this->sourceMap = $sourceMap;
+ }
+
public function setLoadPaths(array $loadPaths)
{
$this->loadPaths = $loadPaths;
@@ -143,6 +149,10 @@ public function filterLoad(AssetInterface $asset)
$pb->add('--line-numbers');
}
+ if ($this->sourceMap) {
+ $pb->add('--sourcemap');
+ }
+
foreach ($this->loadPaths as $loadPath) {
$pb->add('--load-path')->add($loadPath);
}
Something went wrong with that request. Please try again.