S
S
Sergey Valitov2018-10-24 20:17:44
1C-Bitrix
Sergey Valitov, 2018-10-24 20:17:44

Why is css not compressed in Bitrix?

Hello. There is a site on Bitrix, without a license. In the module settings, all css/js compression checkboxes are checked. I add styles like this:

$APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH.'/css/account.css');

As a result, I get a combined style file, but without minification, i.e. with my formatting.
What can be wrong? Because of the license?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Malinovsky, 2018-10-24
@serejatoje

As far as I remember, these checkboxes are responsible for connecting min versions. That is, if there is an account.min.css file in the css folder and the option to include minified css is enabled. Then it will connect the min version, if there is no min version, it will connect the normal one. The same goes for js scripts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question