postcss / postcss-mixins

PostCSS plugin for mixins
MIT License
462 stars 47 forks source link

problems with image paths in mixins #160

Closed muhandis86 closed 6 months ago

muhandis86 commented 6 months ago

I updated the postsss-mixin dependency from version 6.2.0 to 9.0.4, after which the compilation of background paths in mixins occurs incorrectly, i.e. in url. What happens is that where the $(image) variable is expanded in mixins, after the first parenthesis is encountered, a quote is placed before the closing parenthesis, so the path is not fully resolved.

111

package.json and _mixin.css:

222

muhandis86 commented 6 months ago

with postcss-mixins 6.2.0 works without problems

ai commented 6 months ago

The problem was with postcss-cachebuster which was not updated to PostCSS 8