Simple Less CSS
1,218 sites
Security covered
This module simplifies the process of compiling Less style sheets into CSS. It allows developers to define their Less files in the theme's library definitions, automatically generating the corresponding CSS.
Simple Less makes it easy to compile Less style sheets.
How to install it
With composer
run
composer require drupal/ipless
Dependencies
The module use the php library wikimedia/less.php
How to use it
Sample your_theme.libraries.yml
base:
version: 1.0
less:
theme:
css/styles.less: {}
Or with output:
base:
version: 1.0
less:
base:
css/foo.less: {}
theme:
css/styles.less: { output: css/gen/styles.css }
css:
theme:
css/gen/styles.css: {}