teeleader-ss-less
v0.2.2
Published
Less (CSS) wrapper for SocketStream 0.3
Downloads
1
Readme
Less (CSS) wrapper for SocketStream 0.3
Allows you to use Less files (.less) in your SocketStream project.
Instructions
Add teeleader-ss-less
to your application's package.json
file and then add this line to app.js:
ss.client.formatters.add(require('teeleader-ss-less'));
JavaScript variable injection
The teeleader-ss-less
wrapper allows you to inject JavaScript variables into your Less code via a prepended Less string of your own making. For example:
var ssLess = require('teeleader-ss-less');
var assetsPath = 'https://s3.amazonaws.com/example_assets_path/';
...
ssLess.prependLess('@assets-path: "' + assetsPath + '"');
ss.client.formatters.add(ssLess);