Hey, I use this awesome plugin after processing variables with postcss-custom-properties ... to make it work together something like this is needed:
@svg-load icon-search url('@mdi/svg/svg/magnify.svg')
{
fill: var(--color);
}
&:after
{
background: svg-inline(rs-icon-search) center no-repeat;
}
What I totally would love is a syntax like:
&:after
{
background: svg-load('@mdi/svg/svg/magnify.svg', fill = var(--color)) center no-repeat;
}
@TrySound Is there a way to rewrite this plugin or my postcss chain to make the easy syntax possible?
require('postcss-custom-properties')(
{
preserve: false
}),
require('postcss-inline-svg')(
{
paths:
[
'node_modules'
]
}),
Thanks
Hey, I use this awesome plugin after processing variables with postcss-custom-properties ... to make it work together something like this is needed:
What I totally would love is a syntax like:
@TrySound Is there a way to rewrite this plugin or my postcss chain to make the easy syntax possible?
Thanks