From 7e007fc7892fda529ab7f57ba26df3c4147fa278 Mon Sep 17 00:00:00 2001 From: Aron Novak Date: Mon, 22 Jul 2019 08:34:12 +0200 Subject: [PATCH] add sourcemap support for src/Task/Assets/Scss.php --- src/Task/Assets/Scss.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Task/Assets/Scss.php b/src/Task/Assets/Scss.php index ffd39345a..c2290c592 100644 --- a/src/Task/Assets/Scss.php +++ b/src/Task/Assets/Scss.php @@ -63,6 +63,10 @@ protected function scssphp($file) $scss->setFormatter($this->compilerOptions['formatter']); } + if (isset($this->compilerOptions['sourceMap'])) { + $scss->setSourceMap($this->compilerOptions['sourceMap']); + } + return $scss->compile($scssCode); }