Add --debug flag to "compile js" utility cmd
This commit is contained in:
parent
0fb5c11318
commit
846858f2cb
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue