Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | // This file declares an Angular module which can be autoloaded | |
3 | $isDebug = Civi::settings()->get('debug_enabled'); | |
4 | ||
5 | return [ | |
6 | 'ext' => 'civicrm', | |
7 | 'js' => ['ang/crmUi.js'], | |
8 | 'partials' => ['ang/crmUi'], | |
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 | ), | |
17 | ]; |