metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting global variables

rondevera opened this issue · comments

Is there a way to set global LESS variables, similar to lessc's --global-var option?

For some background, I'm sharing some LESS files with non-Rails applications. The shared files start with imports like this:

@import "@{components_path}/path/to/src.less";

Apps that are using lessc for compilation are simply able to define @components_path via a command-line option, and I'm interested in doing the same. Since the files are shared across apps with different environments, I can't use the usual approach of adding an import for another file containing global variables.

ℹ️ no activity for years, closing