# metalsmith-less

> A LESS plugin for Metalsmith

Latest version **2.0.0** (published 2015-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install metalsmith-less
pnpm add metalsmith-less
yarn add metalsmith-less
bun add metalsmith-less
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-03-18 |
| First published | 2014-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| Author | Christopher Cliff |
| Maintainers | christophercliff |
| Keywords | metalsmith, less, css |

## Links

- npm: https://www.npmjs.com/package/metalsmith-less
- Repository: http://github.com/christophercliff/metalsmith-less
- Homepage: https://github.com/christophercliff/metalsmith-less
- Issues: https://github.com/christophercliff/metalsmith-less/issues
- npm.io page: https://npm.io/package/metalsmith-less

## Dependencies (5)

- [joi](https://npm.io/package/joi.md) ^6.0.8
- [less](https://npm.io/package/less.md) ^2.4.0
- [lodash](https://npm.io/package/lodash.md) ^3.5.0
- [bluebird](https://npm.io/package/bluebird.md) ^2.9.14
- [multimatch](https://npm.io/package/multimatch.md) ^2.0.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2015-03-18
- 1.0.3 — 2014-12-24
- 1.0.2 — 2014-10-31
- 1.0.1 — 2014-09-30
- 1.0.0 — 2014-09-30
- 0.1.2 — 2014-06-24
- 0.1.1 — 2014-04-04
- 0.1.0 — 2014-03-25
- 0.0.3 — 2014-03-13
- 0.0.2 — 2014-03-13
- 0.0.1 — 2014-03-13

## README

# metalsmith-less

[![Build Status](https://travis-ci.org/christophercliff/metalsmith-less.png?branch=master)](https://travis-ci.org/christophercliff/metalsmith-less)

A [LESS](http://lesscss.org/) plugin for [Metalsmith](http://www.metalsmith.io/).

## Installation

```
npm install metalsmith-less
```

## Usage

```js
var less = require('metalsmith-less')

new Metalsmith(__dirname)
    .use(less(options))
    .build()
```

### **`options`** `Object`

- **`pattern`** `String|Array<String>`

    The [pattern](https://github.com/sindresorhus/multimatch) to filter source files. Default `**/*.less`.

- **`render`** `Object`

    The options passed to [`less.render(String[, Object])`](http://lesscss.org/usage/#programmatic-usage). Unfortunately, this method is *undocumented*. See https://github.com/less/less-docs/issues/212 for more information. Default `undefined`.

- **`useDynamicSourceMap`** `Boolean`

    Overrides the supplied source map configuration with a dynamic file-level configuration. This is the easiest way to enable source maps in your Metalsmith build. Default `false`.

## Tests

```
$ npm test
```

## License

MIT License, see [LICENSE](https://github.com/christophercliff/metalsmith-less/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/metalsmith-less · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
