# Summary
This is a preprocessor for LESS files.
I'm glad to announce about first "Less CSS Preprocessor" module - drupal 8 version.
This works with Libraries API and you can include all less libraries like in drupal 7 version. Also it works with autoprefixer (v5.0 was tested).
This module will detect yml library with "less" name.
Example:
theme_name.libraries.yml
less: css: theme: less_file_path/file_name.less: {}
and you can include it on needed pages:
Example(global use):
theme_name.info.yml
libraries: - 'theme_name/less'
This module was sponsored by:
# Project URL
https://www.drupal.org/project/less
# Where is the code?
# Estimated completion date
Unknown
# Dependencies
# Who's doing the port?
https://www.drupal.org/u/ivanjaros
https://www.drupal.org/u/corey.aufang
https://www.drupal.org/u/sjpagan
https://www.drupal.org/u/ionmacaria
# What help do they need?
This is the first version and some comments have to be reviewed.
# D8 roadmap
https://www.drupal.org/node/2224585
# Background and reference information
Unknown
Comment | File | Size | Author |
---|---|---|---|
#15 | Screen Shot 2017-08-17 at 15.13.57.png | 28.84 KB | Luca Cattaneo |
#6 | less-8.x-1.0-alpha1.zip | 22.61 KB | ion.macaria |
Comments
Comment #2
ion.macaria CreditAttribution: ion.macaria as a volunteer commentedComment #3
naiduharish CreditAttribution: naiduharish as a volunteer commentedAny updates on when this module will get completed?
Comment #4
sjpagan CreditAttribution: sjpagan commentedComment #5
sjpagan CreditAttribution: sjpagan commentedHi @naiduharish, follow #D8 Randomap to porting.
Comment #6
ion.macaria CreditAttribution: ion.macaria as a volunteer and commentedI'm glad to announce about first "Less CSS Preprocessor" module - drupal 8 version.
This works with Libraries API and you can include all less libraries like in drupal 7 version. Also it works with autoprefixer (v5.0 was tested).
This module will detect yml library with "less" name.
Example:
theme_name.libraries.yml
and you can include it on needed pages:
Example(global use):
theme_name.info.yml
Comment #7
ion.macaria CreditAttribution: ion.macaria as a volunteer and commentedComment #8
ion.macaria CreditAttribution: ion.macaria as a volunteer and commentedComment #9
ion.macaria CreditAttribution: ion.macaria as a volunteer and commentedComment #10
ion.macaria CreditAttribution: ion.macaria as a volunteer and commentedComment #11
arnoldbird CreditAttribution: arnoldbird commentedPlease include a README file in the module with instructions on installation and use. Thanks!
Comment #12
frobI thought the porting efforts where happening here https://gitlab.com/SchnWalter/drupal8-less
Why is porting happening in two places?
Comment #13
frobAdd both places code is being done to list.
Comment #14
ion.macaria CreditAttribution: ion.macaria as a volunteer and commented@frob I just ported module from D7 to D8.
https://gitlab.com/SchnWalter/drupal8-less I saw differ from D7 version.
All efforts is Drupal 7 depelopper @corey.aufang, I just updated module code logic to Drupal 8 requirements.
The main functionality what I needed was watch mode, and it was implemented in this version.
Sure we can combine both versions and made a new stable version.
Comment #15
Luca Cattaneo CreditAttribution: Luca Cattaneo commentedThanks @ion.macaria! Your module (https://github.com/ionmacaria/less) works fine but I have the less compiled two times in style.css.
Maybe I'm doing something wrong.
I'm using oyejorge/less.php compiler.
I got this warning, don't know if it's related.
Notice: Array to string conversion in include() (line 7 of modules/contrib/less/src/Plugin/engines/LessEngineLess_php.php).
When I clear the cache I got these others warnings.
Thanks for your work, tell me if I can help somehow.
Comment #16
frobI have tried both, https://gitlab.com/SchnWalter/drupal8-less is far closer to the original module rebuilt for D8. It is also the module that has had the most vetting on the module issue queue. Please read the roadmap https://www.drupal.org/node/2224585
Comment #17
mmjvb CreditAttribution: mmjvb as a volunteer commentedWith only a dev release here on d.o. Status should be Needs work.