Merge pull request #23127 from civicrm/5.48
[civicrm-core.git] / ang / crmUi.ang.php
CommitLineData
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 5return [
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];