From: edward Date: Wed, 6 Dec 2017 12:02:57 +0000 (+0800) Subject: buildSDK/less-bootstrap-compiler.php X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=bc0f1899b579be1cf1c20fd77c466f2cc92af9ee buildSDK/less-bootstrap-compiler.php --- 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']}";