コード例 #1
0
ファイル: LessCompiler.php プロジェクト: legutierr/gantry5
 /**
  * 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);
     }
 }
コード例 #2
0
ファイル: ScssCompiler.php プロジェクト: legutierr/gantry5
 /**
  * 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);
     }
 }