frizzy / less-slim-middleware
Compiles LESS files to CSS
dev-master
2013-11-19 19:02 UTC
Requires
- php: >=5.3.0
- leafo/lessphp: >=0.4.0@stable
- slim/slim: >=2.3.5@stable
This package is not auto-updated.
Last update: 2024-12-17 01:32:42 UTC
README
Usage
Add the following in your root composer.json file:
{
"require": {
"frizzy/less-slim-middleware": "0.*"
}
}
Compiling LESS
Put your less file in any public direcotry (Example: public/css/my_stylesheet.less)
Before the compiler generates a CSS file, a directory called 'generated' will be created in your LESS file's directory. The generated CSS file will have the same filename as your LESS file but with a .css extension.
All you need to do is configure your tag with the location of the generated .css file:
<link rel="stylesheet" href="/css/generated/my_stylesheet.css" />