Exemplo n.º 1
0
 /**
  * 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);
     }
 }
Exemplo n.º 2
0
 /**
  * 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);
     }
 }