Skip to content

Commit 686814d

Browse files
committed
Add --debug flag to "compile js" utility cmd
1 parent 95e170a commit 686814d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

console/OctoberUtil.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ protected function getOptions()
7171
{
7272
return [
7373
['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production.'],
74+
['debug', null, InputOption::VALUE_NONE, 'Run the operation in debug / development mode.'],
7475
];
7576
}
7677

@@ -92,7 +93,7 @@ protected function utilCompileAssets($type = null)
9293
{
9394
$this->comment('Compiling registered asset bundles...');
9495

95-
Config::set('cms.enableAssetMinify', true);
96+
Config::set('cms.enableAssetMinify', !$this->option('debug'));
9697
$combiner = CombineAssets::instance();
9798
$bundles = $combiner->getBundles($type);
9899

0 commit comments

Comments
 (0)