I want to define a variable, which could be empty in some cases
@prefix: "";
and to use it like this
src: url("@{prefix}/path/to/something");
the problem is that it compiles into
src: url("""/path/to/something");
How to define an empty string variable, that can be compiled in
src: url("/path/to/something");
Update: Issue closed https://github.com/cloudhead/less.js/issues/532
Just found a way to do this... escape an empty string @prefix: ~'';
I ran into this with the box-shadow inset
option that will often remain empty.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With