Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
27 lines (14 loc) · 749 Bytes

README.md

File metadata and controls

executable file
·
27 lines (14 loc) · 749 Bytes

webmake-less

Require LESS files with Webmake

To use this extension, install it aside of Webmake:

$ npm install webmake-less

If you use global installation of Webmake, then extension also needs to be installed globally:

$ npm install -g webmake-less

When running Webmake, ask webmake to use it:

$ webmake --ext=less program.js bundle.js

Same way when Webmake is used programmatically:

webmake(inputPath, { ext: 'less' }, cb);

webmake-less can be used with any other Webmake extension, e.g.:

$ webmake --ext=less --ext=otherext program.js bundle.js

Programmatically:

require('./path/to/lessfile'); // injects the resulting CSS automatically into the current page