Skip to content

Add ability to pass variables to CLI compiler #1727

@ProLoser

Description

@ProLoser

To do cache-busting app-wide, I need to add a ?123 to the end of all my import statements. I see that you guys added import interpolation, however, this requires that I must set the cache-busting value in my CSS (which seems frustratingly odd).

It would be nice if I could pass a variable as a cli argument that would then become the cachebusting value (such as the git sha1, etc).

Something like:

lessc -vars={cachebust:123} somefile.less

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions