Install
Works with Drupal: ^10.2 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
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 updbThe 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.