To delete the comments in compiled cms_stylesheet,
create UDT named : clean_StylesheetPostCompile
Code: Select all
$params['stylesheet'] = preg_replace('#/\*(.*)\*/|\n|\r#sU', '', $params['stylesheet']);
then in event manager, StylesheetPostCompile, add this UDT.
Clear cache and verify you stylesheet in frontend.
---
To strip css in stylesheet
Code: Select all
[[strip]] your css code [[/strip]]
--
To strip code in template : cf smarty
Code: Select all
{strip}...code {plugin_name|strip} or {module_name|strip} for modules or plugin not compatible with strip tag like 'content' plugin {{content}|strip} {/strip}
----
To strip inline js code :
cf module CGExtensions
----
To combine js file :
cf module CGExtensions and read his documentation about the included function cgjs_render
hope it's help