How to disable the JS and CSS minification?
The following property has to be added in [Jahia]/digital-factory-config/jahia/jahia.properties
:
####################
# Prior DX 7.3.1.0 #
####################
aggregateAndCompressAssets = false
###########################
# DX 7.3.1.0 and superior #
###########################
# to disable the compression
compressAssetsDuringAggregation = false
# to disable the aggregation
aggregateAssets = false
A restart of the Jahia instance is mandatory.
aggregateAssets
and compressAssetsDuringAggregation
, so the aggregation and the compression can be managed independently, but the property compressAssetsDuringAggregation will be ignored if your instance is running with a version of JDK other than 1.8 as the compression of asset will be dropped in future version of Jahia.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
/********************/
/* Prior DX 7.3.1.0 */
/********************/
SpringContextSingleton.getBean("staticAssetsFilter").setAggregateAndCompress(false)
/***************************/
/* DX 7.3.1.0 and superior */
/***************************/
//to disable the compression
SpringContextSingleton.getBean("staticAssetsFilter").setCompressDuringAggregation(false)
// to disable the aggregation
SpringContextSingleton.getBean("staticAssetsFilter").setAggregateAssets(false)
And of course, you can enable it back with the following instruction
/********************/
/* Prior DX 7.3.1.0 */
/********************/
SpringContextSingleton.getBean("staticAssetsFilter").setAggregateAndCompress(true)
/***************************/
/* DX 7.3.1.0 and superior */
/***************************/
//to disable the compression
SpringContextSingleton.getBean("staticAssetsFilter").setCompressDuringAggregation(true)
// to disable the aggregation
SpringContextSingleton.getBean("staticAssetsFilter").setAggregateAssets(true)