Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nfriedly/eleventy-plugin-less
- Owner: nfriedly
- Created: 2024-06-08T13:51:11.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-06-08T17:07:09.000Z (4 months ago)
- Last Synced: 2024-09-12T21:44:52.113Z (12 days ago)
- Topics: css, eleventy, eleventy-plugin, less, less-css, lesscss
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eleventy-plugin-less
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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