forked from a-r-m-i-n/min
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
26 lines (22 loc) · 998 Bytes
/
ext_localconf.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
<?php
/* | This extension is made with love for TYPO3 CMS and is licensed
* | under GNU General Public License.
* |
* | (c) 2016-2022 Armin Vieweg <[email protected]>
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Add CSS/JS Minifier
$GLOBALS['TYPO3_CONF_VARS']['FE']['cssCompressHandler'] = T3\Min\Minifier::class . '->minifyStylesheet';
$GLOBALS['TYPO3_CONF_VARS']['FE']['jsCompressHandler'] = T3\Min\Minifier::class . '->minifyJavaScript';
// Register tiny source
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'])) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'] = [];
}
array_unshift(
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'],
'T3\Min\Tinysource->tinysource'
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] =
'T3\Min\Tinysource->tinysource';