1
votes

In Drupal 8 how do I use Drush to enable CSS and JavaScript aggregation (under admin->configuration->development->performance->bandwidth optimization)?

1

1 Answers

1
votes

To set configuration in Drupal 8 through drush the command name changed:

drush config-set <config-name> <key> <value>

The CSS and JS settings are part of system.performance

drush config-set system.performance css.preprocess TRUE
drush config-set system.performance js.preprocess TRUE

Warning: Lots of sites enable or disable those using the settings.php or settings.local.php files, and these drush commands will not override those values.

More about config set.