33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-01 01:03:55 +00:00

use unminified CSS in debug mode

This commit is contained in:
Denis Ryabov 2021-02-27 10:38:38 +03:00
parent ddb30892bf
commit b983dcbcfe

View File

@ -24,6 +24,8 @@ else
// Load jQuery // Load jQuery
JHtml::_('jquery.framework'); JHtml::_('jquery.framework');
$cssSuffix = JDEBUG ? '.css' : '.min.css';
// Load Bootstrap // Load Bootstrap
if (version_compare(JVERSION, '4.0', '>=')) if (version_compare(JVERSION, '4.0', '>='))
{ {
@ -32,11 +34,11 @@ if (version_compare(JVERSION, '4.0', '>='))
} }
else else
{ {
JHtml::stylesheet('media/com_jedchecker/css/j4-style.min.css'); JHtml::stylesheet('media/com_jedchecker/css/j4-style' . $cssSuffix);
JHtml::script('media/com_jedchecker/js/bootstrap.min.js'); JHtml::script('media/com_jedchecker/js/bootstrap.min.js');
} }
JHtml::stylesheet('media/com_jedchecker/css/style.min.css'); JHtml::stylesheet('media/com_jedchecker/css/style' . $cssSuffix);
JHtml::script('media/com_jedchecker/js/script.js'); JHtml::script('media/com_jedchecker/js/script.js');
// List of rules // List of rules