Skip to content

Commit 29bc188

Browse files
committed
Merge pull request #2 from Richard-NL/master
source_map config
2 parents 8d4b256 + 5acd50f commit 29bc188

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ the_island_node_sass:
3434
* **debug** - turns on `--source-comments`
3535
* **load_paths** - adds paths to `--include-path`
3636
* **node** - path to your local node (might help if node is not on your path)
37-
37+
* **source_map** - boolean to set the source_map to true or false

src/TheIsland/NodeSassBundle/Assetic/Filter/NodeSassFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function filterLoad(AssetInterface $asset)
6161
}
6262

6363
if ($this->sourceMap) {
64-
$pb->add('--source-map');
64+
$pb->add('--source-map true');
6565
}
6666

6767
if ($this->debugInfo) {

src/TheIsland/NodeSassBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function getConfigTreeBuilder() {
1414
->children()
1515
->scalarNode('apply_to')->end()
1616
->scalarNode('bin')->end()
17+
->scalarNode('source_map')->defaultValue(false)->end()
1718
->scalarNode('node')->defaultNull()->end()
1819
->scalarNode('style')->end()
1920
->booleanNode('debug')->defaultFalse()->end()

0 commit comments

Comments
 (0)