postcss-replace icon indicating copy to clipboard operation
postcss-replace copied to clipboard

Non-string replacement value

Open alexgagnon opened this issue 1 year ago • 0 comments

Hi, is there a technical reason why the replacement value must be a string? My use-case is that I load in an object and then use that to replace values in a CSS file, but some values should be numbers.

For example, this fails:

padding: {{ padding }};
data = {
  padding: 0, // this fails, but works as a string: "0"
}

alexgagnon avatar Jun 13 '23 05:06 alexgagnon