From bc0f1899b579be1cf1c20fd77c466f2cc92af9ee Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 6 Dec 2017 20:02:57 +0800 Subject: [PATCH] buildSDK/less-bootstrap-compiler.php --- buildSDK/less-bootstrap-compiler.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildSDK/less-bootstrap-compiler.php b/buildSDK/less-bootstrap-compiler.php index 0777e53cfd..575daab136 100644 --- a/buildSDK/less-bootstrap-compiler.php +++ b/buildSDK/less-bootstrap-compiler.php @@ -20,12 +20,14 @@ $files = array( 'baseDir' => "{$rootDir}/roojs1/css-bootstrap", 'name' => 'bootstrap.css', 'minify' => 'bootstrap.min.css', + 'sourceMapRootpath' => '../less/bootstrap/', 'variables' => array("@import 'variables.less';") ), "{$rootDir}/roojs1/less/roojs-bootstrap/roojs-bootstrap.less" => array( 'baseDir' => "{$rootDir}/roojs1/css-bootstrap", 'name' => 'roojs-bootstrap-debug.css', 'minify' => 'roojs-bootstrap.css', + 'sourceMapRootpath' => '../less/roojs-bootstrap/', 'variables' => array("@import '../bootstrap/variables.less';") ) ); @@ -47,7 +49,9 @@ foreach ($files as $src => $file){ 'variables' => $file['variables'], 'sourceMap' => true, 'sourceMapWriteTo' => "{$file['baseDir']}/{$file['name']}.map", - 'sourceMapURL' => "{$file['name']}.map" + 'sourceMapURL' => "{$file['name']}.map", + 'sourceMapRootpath' => $file['sourceMapRootpath'], + 'sourceMapBasepath' => dirname(realpath($src)) )); $css = "{$file['baseDir']}/{$file['name']}"; -- 2.39.2