-
Notifications
You must be signed in to change notification settings - Fork 0
/
include.php
33 lines (26 loc) · 841 Bytes
/
include.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?
use Bitrix\Main\Loader;
//! ОБЯЗАТЕЛЬНО
Loader::registerAutoLoadClasses(
'welpodron.optimizer',
[
'Welpodron\Optimizer\Utils' => 'lib/utils/utils.php',
]
);
CJSCore::RegisterExt('welpodron.optimizer.csso', [
'js' => '/bitrix/js/welpodron.optimizer/csso/csso.js',
'use' => CJSCore::USE_ADMIN,
'skip_core' => true
]);
CJSCore::RegisterExt('welpodron.optimizer.uglifyjs', [
'js' => '/bitrix/js/welpodron.optimizer/uglifyjs/uglifyjs.js',
'use' => CJSCore::USE_ADMIN,
'skip_core' => true
]);
CJSCore::RegisterExt('welpodron.optimizer', [
'js' => '/bitrix/js/welpodron.optimizer/optimizer/script.js',
'rel' => ['welpodron.optimizer.csso', 'welpodron.optimizer.uglifyjs'],
'use' => CJSCore::USE_ADMIN,
'skip_core' => true
]);
CJSCore::init(['welpodron.optimizer']);