frizzy / less-slim-middleware
Compiles LESS files to CSS
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/frizzy/less-slim-middleware
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: 2025-10-07 05:27:26 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" />