@fidian/metalsmith-less
v4.7.0
Published
A LESS plugin for Metalsmith
Readme
metalsmith-less
A LESS plugin for Metalsmith.
Installation
npm install @fidian/metalsmith-lessUsage
var less = require('@fidian/metalsmith-less')
new Metalsmith(__dirname)
.use(less(options))
.build()options Object
patternString|Array<String>The pattern to filter source files. Default
**/*.less.removeSourceBooleanWhen
true, the source files are removed and will not appear in thebuild/directory. The default isfalse, which will keep a copy of your*.lessfiles around.renderObjectThe options passed to
less.render(String[, Object]). Unfortunately, this method is undocumented. See https://github.com/less/less-docs/issues/212 for more information. Defaultundefined.useDynamicSourceMapBooleanOverrides 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 testCredits and License
This is a fork of metalsmith-less and is published as @fidian/metalsmith-less.
Changes from original:
- Removed style check to eliminate problems reported via
npm audit. - Updated packages.
- Includes the
removeSourceoption.
MIT License, see LICENSE for details.

