25 lines
1.1 KiB
PHP
25 lines
1.1 KiB
PHP
<?php
|
|
|
|
if (!defined('TYPO3_MODE')) {
|
|
die ('Access denied.');
|
|
}
|
|
|
|
// post processing hook to clear any existing cache files if the button in
|
|
// the backend is clicked (contains an age check)
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] =
|
|
'EXT:scriptmerger/Classes/user_ScriptmergerCacheHook.php:SGalinski\Scriptmerger\user_ScriptmergerCacheHook->clearCachePostProc';
|
|
|
|
// register the minify, compress and merge processes
|
|
if (TYPO3_MODE == 'FE') {
|
|
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] =
|
|
'EXT:scriptmerger/Classes/user_ScriptmergerOutputHook.php:SGalinski\Scriptmerger\user_ScriptmergerOutputHook->contentPostProcOutput';
|
|
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][] =
|
|
'EXT:scriptmerger/Classes/user_ScriptmergerOutputHook.php:SGalinski\Scriptmerger\user_ScriptmergerOutputHook->contentPostProcAll';
|
|
}
|
|
|
|
// needs to be disabled for the frontend, otherwise the default exclude rule prevents any script files from merging
|
|
$TYPO3_CONF_VARS['FE']['versionNumberInFilename'] = '';
|
|
$TYPO3_CONF_VARS['FE']['compressionLevel'] = '0';
|
|
|
|
?>
|