File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
lib/internal/Magento/Framework/Css/PreProcessor/Adapter/Less Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Css \PreProcessor \Adapter \Less ;
7
7
8
+ use Magento \Framework \App \Filesystem \DirectoryList ;
8
9
use Magento \Framework \App \State ;
9
10
use Magento \Framework \Css \PreProcessor \File \Temporary ;
10
11
use Magento \Framework \Phrase ;
@@ -40,6 +41,7 @@ class Processor implements ContentProcessorInterface
40
41
* @var Temporary
41
42
*/
42
43
private $ temporaryFile ;
44
+ private DirectoryList $ directoryList ;
43
45
44
46
/**
45
47
* Constructor
@@ -53,12 +55,14 @@ public function __construct(
53
55
LoggerInterface $ logger ,
54
56
State $ appState ,
55
57
Source $ assetSource ,
56
- Temporary $ temporaryFile
58
+ Temporary $ temporaryFile ,
59
+ DirectoryList $ directoryList
57
60
) {
58
61
$ this ->logger = $ logger ;
59
62
$ this ->appState = $ appState ;
60
63
$ this ->assetSource = $ assetSource ;
61
64
$ this ->temporaryFile = $ temporaryFile ;
65
+ $ this ->directoryList = $ directoryList ;
62
66
}
63
67
64
68
/**
@@ -73,7 +77,9 @@ public function processContent(File $asset)
73
77
[
74
78
'relativeUrls ' => false ,
75
79
'compress ' => $ mode !== State::MODE_DEVELOPER ,
76
- 'sourceMap ' => $ mode === State::MODE_DEVELOPER
80
+ 'sourceMap ' => $ mode === State::MODE_DEVELOPER ,
81
+ 'sourceMapRootpath ' => '/ ' ,
82
+ 'sourceMapBasepath ' => $ this ->directoryList ->getPath (DirectoryList::TEMPLATE_MINIFICATION_DIR ) . '/pub/ '
77
83
]
78
84
);
79
85
You can’t perform that action at this time.
0 commit comments