public function fire()
{
$asset = \App::make('asset');
// we need to turn on concatenation
// since we are spitting out assets
$config = $asset->getConfig();
$config['environment'] = $this->option('env') ?: 'production';
$asset->setConfig($config);
$generator = new StaticFilesGenerator($asset->getGenerator());
$generated = $generator->generate(public_path($config['routing']['prefix']));
foreach ($generated as $file) {
$this->line($file);
}
$this->line('<info>codesleeve\\asset-pipeline assets generated! :)</info>');
}