A LESS plugin for Metalsmith
npm install metalsmith-less
A LESS plugin for Metalsmith.
```
npm install metalsmith-less
`js
var less = require('metalsmith-less')
new Metalsmith(__dirname)
.use(less(options))
.build()
`
- pattern String|Array
The pattern 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.
```
$ npm test
MIT License, see LICENSE for details.