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

pminf created an issue. See original summary.

NickDickinsonWilde’s picture

Component: General CSS/JS » Documentation

That'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.

pminf’s picture

Your 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!)

NickDickinsonWilde’s picture

Assigned: Unassigned » NickDickinsonWilde
Status: Active » Fixed

Awesome, thanks :)
and sorry, yes, definitely need the d in there.

  • NickWilde committed 493d67f on 8.x-3.x
    Issue #2893820 by pminf, NickWilde: Local js/css preprocess setting is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nilesh.k’s picture

I am using version 8.x-4.0. #2 worked for me. Thank you :)