SCSSPHP

Component ID

1802488

Component name

SCSSPHP

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1047

Component created

Component changed

Component body

scssphp is a compiler for SCSS written in PHP. Once installed, it will compile all .scss files added to the page to .css files dynamically.

Usage

  drupal_add_css('example.scss');
stylesheets[all][] = scss/layout.scss

Dependencies

Installation (via Drush)

$ drush dl scssphp
$ drush en scssphp
$ drush composer-manager install

Installation (Manual)

  1. Download and install Composer Manager
  2. Download and install SCSSPHP module
  3. Rebuild dependencies at admin/config/system/composer-manager
  4. At sites/default/files/composer, run:
    $ curl -sS https://getcomposer.org/installer | php
    $ php composer.phar install
  5. Check admin/reports/status to make sure the module is installed correctly
  6. Check admin/help/scssphp for a demonstration of it in action