/** * Execute the console command. * * @return void */ public function fire() { $laless = new Laless($this->app); $this->line("\n<comment>Laless " . LALESS_VERSION . "</comment> <info>Compiling files...</info>"); $laless->compileLessFiles(true); if ($this->app['config']->get('laless::auto_minify')) { $laless->minify(); } $this->info("Done\n"); }
/** * Bootstrap the application events. * * @return void */ public function boot() { /** * Laless will NOT run in production environment */ if ($this->app->__get('env') != 'production' || $this->app['config']->get('laless::force_compile')) { $this->package('berbecki/laless'); $laless = new Laless($this->app); // Compiles less file if manual_compile_only is not enabled if (!$this->app['config']->get('laless::manual_compile_only')) { $laless->compileLessFiles(); } } }