/** * Constructor. */ public function __construct() { parent::__construct(); $this->compiler = new Compiler(); if ($this->production) { $this->compiler->setFormatter('lessjs'); } else { $this->compiler->setFormatter('compressed'); $this->compiler->setPreserveComments(true); } }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->compiler = new Compiler(); if ($this->production) { $this->compiler->setFormatter('Leafo\\ScssPhp\\Formatter\\Crunched'); } else { $this->compiler->setFormatter('Leafo\\ScssPhp\\Formatter\\Expanded'); $this->compiler->setLineNumberStyle(Compiler::LINE_COMMENTS); } }