Initial commit
This commit is contained in:
24
typo3conf/ext/scriptmerger/ext_localconf.php
Normal file
24
typo3conf/ext/scriptmerger/ext_localconf.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user