Package Exports
- less-css-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (less-css-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
less-css-stream
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.
example
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);
usage
lessCssStream(file[, opts])
file
- the less file to transform
opts
- optional options hash passed through to less.render
changelog
- 1.0.0 - updated included/dependent Less version to 2.x