package
less to css transform
npm install less-css-streamGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A less to css stream wrapper around less.
Takes a file argument and an optional opts argument that is passed through to less. Returns a through stream that has less contents written in and outputs the compiled css.
Can be used as a transform for parcelify, cartero or browserify-assets.
var lessCssStream = require('less-css-stream');
var fs = require('fs');
var path = require('path');
var inputFile = path.join(__dirname, "sampleStyle.less");
var opts = { paths : ['./vendor/bootstrap'], compress: true };
fs.createReadStream(inputFile).pipe(lessCssStream(inputFile, opts)).pipe(process.stdout);file - the less file to transform
opts - optional options hash passed through to less.render
Estimated unpacked size across 3 packages.
5.0 kB
Includes dependencies.
~1.0.0
1.0.0