Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While I'm developing theme or modules I don't want js/css to be preprocessed (especially minification and aggregation). That's why I'm usually disabling it via settings.local.php:
/**
* Disable CSS and JS aggregation.
*/
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
With AdvAgg 8.x-2.x this also disables AdvAgg preprocessing, but in 8.x-3.x it doesn't take effect. I have to uncheck Enable advanced aggregation to temporarily disable AdvAgg functionality.
Comments
Comment #2
NickDickinsonWildeThat's predominantly intentional. There are situations you don't want aggregation on (Say serving via HTTPS/HTTP 2.0) but do want optimizations applied.
I had thought it was clear in the new readme (in the repo and in the d.o documentation guide). However, obviously not. I'll improve that.
You should be able to add:
$config['advagg.settings']['enable'] = FALSE;
to your local.settings.php to override it.
Comment #3
pminfYour repos readme helped me a lot to get into AdvAgg. Good job! Add some words about local settings and it will become a developers dream :-)
$config['advagg.settings']['enabled'] = FALSE;
does work for me (mind the d!)Comment #4
NickDickinsonWildeAwesome, thanks :)
and sorry, yes, definitely need the d in there.
Comment #7
nilesh.k CreditAttribution: nilesh.k commentedI am using version 8.x-4.0. #2 worked for me. Thank you :)