Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

6 participants

@voydz

Just an addition to sass filter:

  • supporting sass 3.3 sourcemap
@hnrch02

+1 :+1:

@dcsg

+1 :+1:

@kriswallsmith kriswallsmith merged commit e53ece1 into kriswallsmith:master

1 check failed

Details default The Travis CI build failed
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
View
10 src/Assetic/Filter/Sass/SassFilter.php
@@ -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.