less-docs icon indicating copy to clipboard operation
less-docs copied to clipboard

Math random

Open chreesp opened this issue 4 years ago • 0 comments

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.

chreesp avatar Apr 01 '20 15:04 chreesp