Add --debug flag to "compile js" utility cmd

This commit is contained in:
Samuel Georges 2015-07-15 18:08:11 +10:00
parent 0fb5c11318
commit 846858f2cb
1 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ class OctoberUtil extends Command
{
return [
['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production.'],
['debug', null, InputOption::VALUE_NONE, 'Run the operation in debug / development mode.'],
];
}
@ -92,7 +93,7 @@ class OctoberUtil extends Command
{
$this->comment('Compiling registered asset bundles...');
Config::set('cms.enableAssetMinify', true);
Config::set('cms.enableAssetMinify', !$this->option('debug'));
$combiner = CombineAssets::instance();
$bundles = $combiner->getBundles($type);