Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nfriedly/eleventy-plugin-less

Plugin for eleventy (11ty) to convert Less stylesheets to CSS
https://github.com/nfriedly/eleventy-plugin-less

css eleventy eleventy-plugin less less-css lesscss

Last synced: about 9 hours ago
JSON representation

Plugin for eleventy (11ty) to convert Less stylesheets to CSS

Awesome Lists containing this project

README

        

eleventy-plugin-less
====================

Plugin for [Eleventy (11ty)](https://www.11ty.dev) to compile [Less stylesheets](https://lesscss.org) to [CSS](https://developer.mozilla.org/en-US/docs/Glossary/CSS).

Currently compiles *every* .less file in your project into a distinct output .ccs file. You can use [eleventy ignores](https://www.11ty.dev/docs/ignores/) to disable compilation of library, utility, etc. files.

Automatically appends inline sourcemaps to the end of files.

## Usage
In your `.eleventy.js` [config file](https://www.11ty.dev/docs/config/):

```js
const pluginLess = require("eleventy-plugin-less");

module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(pluginLess);
// ...
};

```

There are currently no configuration options.

## Todo
* Tests
* Add a way to specify entrypoint files and ignore all others
* Add a way to control sourcemaps
* Allow options to be passed directly to less