Setting global variables
rondevera opened this issue · comments
Ron DeVera commented
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.
Josef Šimánek commented
ℹ️ no activity for years, closing