You are here

public function Lessjs::source_maps in Less CSS Preprocessor 7.3

Same name and namespace in other branches
  1. 8 classes/class.lessjs.inc \Lessjs::source_maps()
  2. 7.4 classes/class.lessjs.inc \Lessjs::source_maps()

Enable source maps for current file, and configure source map paths.

Parameters

bool $enabled: Set the source maps flag.

string $rootpath: Value to be prepended to each source map URL. @link http://lesscss.org/usage/#command-line-usage-source-map-rootpath

string $basepath: Leading value to be stripped from each source map URL. @link http://lesscss.org/usage/#command-line-usage-source-map-basepath

File

./class.lessjs.inc, line 106
Contains 'lessjs' class; an abstraction layer for command line less.js.

Class

Lessjs
'lessjs' class.

Code

public function source_maps($enabled, $rootpath = NULL, $basepath = NULL) {
  $this->source_maps_enabled = $enabled;
  $this->source_map_rootpath = $rootpath;
  $this->source_map_basepath = $basepath;
}