Can cs-cart minify js and css without any addon?


I found this blog Store performance on CS-Cart where it say that we can minify js and css simply using cs-cart config.local fille suing this hooks:

// Tweaks
$config[‘tweaks’] = array (
‘js_compression’ => true, // enables compression to reduce size of javascript files
‘check_templates’ => false, // disables templates checking to improve template engine speed
‘inline_compilation’ => true, // compiles nested templates in one file
‘anti_csrf’ => false, // protect forms from CSRF attacks
‘disable_block_cache’ => false, // used to disable block cache
‘join_css’ =>true, // is used to unite css files into one file
‘allow_php_in_templates’ => false, // Allow to use {php} tags in templates

I pasted on my config.local file but nothing happen.

1 Like