Merge pull request #23647 from civicrm/5.50
[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 'ui.utils',
14 ],
15 // Only require the +10kb if we're likely to need it.
16 $isPretty ? ['jsonFormatter'] : []
17 ),
18 ];