I've been searching for this and ALL I found deals with Drupal 7. Old drush command drush vset preprocess_js 0 doesn't work for Drupal 8 and the "variable" table in DB doesn't exist in 8...

Yet, I can't disable aggregation in my D8 site for some reason and want to disable it from either drush or DB.

Do you know a way?


Drupal 8 version to disable aggregation:

disable CSS/JS aggregation

drush -y config-set system.performance css.preprocess 0
drush -y config-set system.performance js.preprocess 0
|improve this answer|||||
  • I thank you dearly and I thumbed up your answer. Best regards! – JohnDoea Nov 24 '16 at 7:22
  • See also the provided example.settings.local.php, which has a settings.php based override, which has the advantage of always being applied locally without changing your actual configuration. – Berdir Nov 24 '16 at 20:40
  • how to do this without drush? – Ralph John Galindo Jan 24 '18 at 2:12
  • @RalphJohnGalindo The settings are at /admin/config/development/performance – user1359 May 31 '18 at 13:45
  • For ADVAGG we additionally need drush -y config-set advagg.settings enabled 0 and in any case drush cr. – geek-merlin Aug 15 '19 at 13:38

If you need it for your development environment you can enable settings.local.php in your settings.php

if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
  include $app_root . '/' . $site_path . '/settings.local.php';

and than make sure ONLY in your local settings.local.php (not on your live enviroment) the following settings are used

$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;

NOTE: those settings can probably be found in sites/default.settings.local.php which you can copy to sites/default/settings.local.php and make use of.

|improve this answer|||||

Use these commands to unset the CSS and JS aggregation through DRUSH - Drupal - 7: drush vset preprocess_js 0 --yes drush vset preprocess_css 0 --yes

Drupal - 8:

Refer above comments.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.