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