Skip to content

Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change

Notifications You must be signed in to change notification settings

clue-legacy/php-scss-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scss-cache

Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change

Quickstart examples

Once installed (see Install), you can serve your SCSS source like this:

<?php
require_once 'vendor/autoload.php';

$scss = '$color: #fff;
body{
  background: darken($color,10%);
  color: invert($color);
}';

$cache = new scss_cache($scss);
$cache->serve();

If instead you want to serve your resulting CSS from SCSS files, use:

$cache = scss_cache::file('source.scss');
$cache->serve();

Or if you want to get your resulting CSS for further processing:

$scss = '...';

$cache = new scss_cache($scss);
$css = $cache->getOutput();

Install

The recommended way to install this library is through composer. New to composer?

{
    "require": {
        "clue/scss-cache": "dev-master"
    }
}

About

Automatically compile your SCSS (sassy CSS from SASS) to plain CSS whenever they actually change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages