Commit | Line | Data |
---|---|---|
8456e727 TO |
1 | <?php |
2 | // This file declares an Angular module which can be autoloaded | |
10d00207 TO |
3 | $isDebug = Civi::settings()->get('debug_enabled'); |
4 | ||
617697e8 | 5 | return [ |
8456e727 | 6 | 'ext' => 'civicrm', |
617697e8 CW |
7 | 'js' => ['ang/crmUi.js'], |
8 | 'partials' => ['ang/crmUi'], | |
10d00207 TO |
9 | 'requires' => array_merge( |
10 | [ | |
11 | 'crmResource', | |
12 | 'ui.utils', | |
13 | ], | |
14 | // Only require the +10kb if we're likely to need it. | |
15 | $isDebug ? ['jsonFormatter'] : [] | |
16 | ), | |
617697e8 | 17 | ]; |