Merge pull request #24238 from demeritcowboy/boo
[civicrm-core.git] / ang / crmUi.ang.php
1 <?php
2 // This file declares an Angular module which can be autoloaded
3 $isPretty = \Civi::settings()->get('debug_enabled') && !defined('CIVICRM_KARMA');
4
5 return [
6 'ext' => 'civicrm',
7 'js' => ['ang/crmUi.js'],
8 'partials' => ['ang/crmUi'],
9 'css' => ['ang/crmUI.css'],
10 'requires' => array_merge(
11 [
12 'crmResource',
13 ],
14 // Only require the +10kb if we're likely to need it.
15 $isPretty ? ['jsonFormatter'] : []
16 ),
17 ];