node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org ยป

rtltr-for-less

RTL/LTR for Less

This is an extension module that adds automatic rtl/ltr file generation for code that uses https://npmjs.org/package/less-middleware for less generation.

Asking for "style.css" will generate "style.css", "style.ltr.css" and "style.rtl.css"

Conversly, asking for "style.rtl.css" or "style.ltr.css" will internally look for "style.less" and convert it to the abovementioned three files.

NOTE This only works with version of less-middleware for which the PR at https://github.com/emberfeather/less.js-middleware/pull/76 has been merged in.

Until then, this works with the less-middleware fork over at:

https://github.com/Pomax/less.js-middleware/archive/master.tar.gz