Skip to content

Commit adaad59

Browse files
committed
add sourceMap generation for less files in developer mode
1 parent 93d50f8 commit adaad59

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/Css/PreProcessor/Adapter/Less

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Css/PreProcessor/Adapter/Less/Processor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ public function processContent(File $asset)
6969
$parser = new \Less_Parser(
7070
[
7171
'relativeUrls' => false,
72-
'compress' => $this->appState->getMode() !== State::MODE_DEVELOPER
72+
'compress' => $this->appState->getMode() !== State::MODE_DEVELOPER,
73+
'sourceMap' => $this->appState->getMode() === State::MODE_DEVELOPER
7374
]
7475
);
7576

0 commit comments

Comments
 (0)