Last Updated: February 25, 2016
·
1.576K
· emarchak

Disable css+js compression via drush

To save yourself some pointy-clicky steps, you can run a few drush commands to disable (or enable!) css and js compression in Drupal.

drush vset preprocess_css 0  # disable css compression
drush vset preprocess_js 0   # disable js compression
drush cc css-js              # clear both caches

To enable this, simply set the variables to 1 instead of 0

3 Responses
Add your response

You have a typo in the clear cache line:
drush cc css-js

over 1 year ago ·

You have a typo in the clear cache line:
drush cc css-js

over 1 year ago ·

Good catch, thanks!

over 1 year ago ·