From 846858f2cb88c6ecdf8b06f3d1e67c8997677ccf Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 15 Jul 2015 18:08:11 +1000 Subject: [PATCH] Add --debug flag to "compile js" utility cmd --- modules/system/console/OctoberUtil.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system/console/OctoberUtil.php b/modules/system/console/OctoberUtil.php index 3dc4900de..bd6ce1a58 100644 --- a/modules/system/console/OctoberUtil.php +++ b/modules/system/console/OctoberUtil.php @@ -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);