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'], | |
666a68e2 | 9 | 'css' => ['ang/crmUI.css'], |
10d00207 TO |
10 | 'requires' => array_merge( |
11 | [ | |
12 | 'crmResource', | |
13 | 'ui.utils', | |
14 | ], | |
15 | // Only require the +10kb if we're likely to need it. | |
16 | $isDebug ? ['jsonFormatter'] : [] | |
17 | ), | |
617697e8 | 18 | ]; |