Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ecedi/wp-less-compile/archive/refs/heads/devel.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Less Compile a plugin to bring less preprocessor to Wordpress
by Agence Ecedi
Installation
prerequis
php 5.4.\ or Up (tested on PHP 5.5.17)
Wordpress 4.01 or more (should work on older versions)
From Github
Go to github Agence Ecedi and download master or latest tag archive
ex: wp-less-compile.master.zip
And extract it to your wp-content/plugins folder and rename the folder less-compile
With Composer
In your composer.json file add the following
then run
Usage
Just enable the plugin, it should do the work:
- Find all enqueued .less files and compile them when needed
- From Admin you can force compilation of active theme .less (beta)
To enqueue a .less file, do as usual for any styles