Ho-compiler
Less compilation transform
Getting Started
npm i -D ho-compiler
Compiler is a class so create a new instance and throw some less at it
var Compiler = var fs = var compiler = var file = fs compiler
But reading and writing files like that is a little cumbersome, do yourself a favour and just pipe stuff in and out
var Compiler = var fs = var compiler = fs
Compile options
paths: './src/' './node_modules/' filename: 'styles.less' compress: true sourceMap: true fs
These are all standard less compile options, with the exception of sourceMap
which is a boolean
and will append the whole source map to the output.
CLI
As of version 0.5.0
the CLI was deprecated, use ho instead.
Contributing
Its written in ES6 so to hack on it you’ll need to transpile
clonenpm inpm testnpm run build