less-docs
less-docs copied to clipboard
Math random
Hello,
I have a use case where upon compiling a random generated number would be awesome. Use case is to bypass browser's asset caching.
It would be awesome if I could replace this
background: url(../path/to/image.png?12345);
with something like this:
background: url(../path/to/image.png?random(5));
In this scenario I wouldn't have to worry if I've uploaded files to production server without manually changing version number.