# 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:

devatwork logo

# Project URL

https://www.drupal.org/project/less

# Where is the code?

  • https://github.com/ionmacaria/less
  • https://gitlab.com/SchnWalter/drupal8-less
  • # 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

    Files: 
    CommentFileSizeAuthor
    #6 less-8.x-1.0-alpha1.zip22.61 KBion.macaria

    Comments

    legaudinier created an issue. See original summary.

    ion.macaria’s picture

    Priority: Normal » Major
    naiduharish’s picture

    Any updates on when this module will get completed?

    sjpagan’s picture

    Issue summary: View changes
    sjpagan’s picture

    Hi @naiduharish, follow #D8 Randomap to porting.

    ion.macaria’s picture

    Assigned: Unassigned » ion.macaria
    Issue summary: View changes
    Status: Needs work » Needs review
    Related issues: +#2224585: Less CSS Preprocessor: Drupal 8 version
    FileSize
    22.61 KB

    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'
    ion.macaria’s picture

    Issue summary: View changes
    ion.macaria’s picture

    Issue summary: View changes
    ion.macaria’s picture

    Issue tags: +LESS
    ion.macaria’s picture

    Issue summary: View changes
    arnoldbird’s picture

    Please include a README file in the module with instructions on installation and use. Thanks!

    frob’s picture

    I thought the porting efforts where happening here https://gitlab.com/SchnWalter/drupal8-less
    Why is porting happening in two places?

    frob’s picture

    Issue summary: View changes

    Add both places code is being done to list.