You are here

public function Lessjs::source_maps in Less CSS Preprocessor 7.4

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

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

@link http://lesscss.org/usage/#command-line-usage-source-map-rootpath @link http://lesscss.org/usage/#command-line-usage-source-map-basepath

Parameters

bool $enabled: Set the source maps flag.

string $base_path: Leading value to be stripped from each source map URL.

string $root_path: Value to be prepended to each source map URL.

File

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

Class

Lessjs
'lessjs' class.

Code

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