Fork me on GitHub

All LESS & SCSS (SASS is not supported!) files are automatically compiled into CSS and cached, there is nothing extra that you need to do. Any changes you make to your CSS, even LESS/SCSS files you have @imported will automatically recreate the cache, invalidate the client side cache, and force the browser to download the newest version.


Dispatcher Options

These options can be set in the first parameter of the Request class in the dispatcher file. For example:

echo \Munee\Dispatcher::run(new \Munee\Request(array('css' => array('lessifyAllCss' => true))));
NameTypeDefaultDescription
lessifyAllCss Boolean false Run **all css** through the LESS compiler (regardless of if it's extension is .css)
scssifyAllCss Boolean false Run **all css** through the SCSS compiler (regardless of if it's extension is .css)

CSS Filters

Read here about Asset Filters

Minify Filter

NameValueDescription
minify true Strip all non-essential whitespace.

Minify Example

This would minify the css (Strip all non-essential whitespace).

<link rel="stylesheet" href="/css/site.css?minify=true">