node-lessify ============ Version 0.2.0 [![Build Status](https://travis-ci.org/wilson428/node-lessify.png)](https://travis-ci.org/wilson428/node-lessify) [![Dependency Status](https://david-dm.org/wilson428/node-lessify.svg)](https://david-dm.org/wilson428/node-lessify) [![devDependencies](https://david-dm.org/wilson428/node-lessify/dev-status.svg)](https://david-dm.org/wilson428/node-lessify#info=devDependencies) LESS 3.12 precompiler and CSS plugin for Browserify. Inspired by [node-underscorify](https://github.com/maxparm/node-underscorify). Originally developed for TIME Magazine's [interactive deployment framework](https://github.com/TimeMagazine/time-interactive). When bundling an app using [Browserify](http://browserify.org/), it's often convenient to be able to include your CSS as a script that appends the style declarations to the head. This is particularly relevant for self-assembling apps that attach themselves to a page but otherwise have reserved real-estate on the DOM. This small script allows you to `require()` your CSS or LESS files as you would any other script. ## Installation ``` npm install node-lessify ``` ## Usage Write your LESS or CSS files as you normally would, and put them somewhere where your script can find it. Then simply require them as you might anything else: ``` require('./styles.less'); require('./mysite.css'); ``` To compile the stylesheets, pass this module to browserify as a transformation on the command line. ``` browserify -t node-lessify script.js > bundle.js ``` ## How it works The stylesheets are compiled (in the case of LESS), minified, and bundle into a function that creates a new `