frizzy/less-slim-middleware

Compiles LESS files to CSS

dev-master 2013-11-19 19:02 UTC

This package is not auto-updated.

Last update: 2024-04-22 22:33:08 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" />