Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created September 24, 2012 17:20
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save chrisjlee/3777116 to your computer and use it in GitHub Desktop.
Save chrisjlee/3777116 to your computer and use it in GitHub Desktop.
drush disable js/css aggregation
// To turn on JS Aggregation
drush vset preprocess_js 1 --yes
// To clear all Cache
drush cc all
// To disable JS Aggregation
drush vset preprocess_js 0 --yes
// To clear cache of JS and CSS only
drush cc css+js
// To enable CSS Aggregation
drush vset preprocess_css 1 --yes
// To disable CSS Aggregation
drush vset preprocess_css 0 --yes
@davidmintz
Copy link

you have a typo in line 11. it should be: css-js, not css_js. I would do the fork-and-pull-request thing but i'm a noob and can't seem to figure out how to do that for a gist.

@leymannx
Copy link

leymannx commented Aug 1, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment