Install

Works with Drupal: ^10.2 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 394.35 KB
MD5: b32979c2d8c091009413d1cc6c0466c4
SHA-1: 34bbe42cf2d852e355745b3a1b91d8c6e0ef5bbe
SHA-256: f3614250133526c09c4edba4087b4b7fd44ac64739117d36a35404ebb37ac709
Download zip 420.32 KB
MD5: 8ab395048fd3f04c6716012fff8052eb
SHA-1: 23776bd7f99599b59895d9971d269de344799e11
SHA-256: b16bb520ae71edc4fdce95c9865bc9ba026b4e37df149bde22e7ac887f95adcf

Release notes

Upgrading to 2.2.0 from 2.1.9 or earlier
Run the database updates after updating the code, before serving pages:

composer update drupal/scss --with-dependencies
drush updb

The services' constructor arguments changed, so a site with the old container cached fails until drush updb or drush cr rebuilds it.

Check these changes:

Drupal 10.2 or later is required. : Drupal 9 and 10.0–10.1 are no longer supported. Compiling on those versions already failed with a missing class. Sites on them can stay on 2.1.9.

New permission: Administer SCSS Compiler. : The settings page now needs administer scss instead of Administer site configuration. A post update grants it to every role that had Administer site configuration. If you manage roles in exported configuration, export them after drush updb.

Subdirectories are mirrored in the output. : scss/layout/grid.scss is now written to css/layout/grid.css, not css/grid.css. Update library definitions that point at the old path, and delete the old files.

Additional import paths work. : They were ignored before. Each path is relative to the directory being compiled.

Source map paths changed. : Maps now use paths relative to the map file and a relative sourceMappingURL, and no empty .css.map is written when source maps are off.

drush scss:compile exits non-zero on errors. : Deployment scripts that ignored compile errors will now stop.

The Drush 8 command file is removed. : Use Drush 9 or later.

Created by: tbcs
Created on: 9 Oct 2026 at 20:31 UTC
Last updated: 9 Oct 2026 at 20:31 UTC
Bug fixes

Other releases