ambimax/magento-module-magemaven-lesscss

On-the-fly LESS compiler for Magento 1.

2.0.1 2017-08-16 12:05 UTC

This package is not auto-updated.

Last update: 2024-04-28 00:42:21 UTC


README

On-the-fly LESS compiler for Magento.

This extension allows to use LESS style sheets with your themes and extensions. It's fully compatible with Magento's CSS merging functionality. LESS files are compiled on-the-fly and will be automatically recompiled after modifing or cache flushing.

Extension uses lessphp library by Leaf Corcoran, which is bundled with module.

Installation

Module should work out of the box after install.

Usage

Extension will automatically compile all files with 'less' extension and replace them with derived CSS. You will just need to place your LESS files to skin folder and include in layout updates just like you do it with CSS:

<action method="addCss"><stylesheet>css/styles.less</stylesheet></action>

<action method="addItem"><type>skin_css</type><name>css/styles-ie.less</name><params/><if>lt IE 8</if></action>