How to disable the CSS minification?

  Written by The Jahia Team
 
Sysadmins
  minify
   Estimated reading time:
7.1.1.0
How to disable the CSS minification?

Answer

The permanent way

The following property has to be added in [DXM]/digital-factory-config/jahia/jahia.properties :

aggregateAndCompressAssets=false

A restart of the DXM instance is mandatory.

The non-permanent way

Another non-permanent way to do it is to execute following instruction from your JCR console http://localhost:8080/modules/tools/jcrConsole.jsp

No restart is needed but after a restart, the default behavior or the value set for aggregateAndCompressAssets  the will be used

SpringContextSingleton.getBean("staticAssetsFilter").setAggregateAndCompress(false)

And of course, you can enable it back with following instruction

SpringContextSingleton.getBean("staticAssetsFilter").setAggregateAndCompress(false)