postcss / postcss-url

PostCSS plugin to rebase url(), inline or copy asset.
MIT License
377 stars 59 forks source link

[incorrect title] url without quotes is missed. #132

Closed 3cp closed 5 years ago

3cp commented 5 years ago

postcss-url missed any url without quotes. Like this one:

background-image: url(any.png);

I found this issue when using clean-css before postcss-url. clean-css by default removed quotes around url.

I could reorder my usage to postcss-url -> clean-css to bypass this issue. But I am not sure whether url without quotes is a valid scenario to be supported by postcss-url?

[Update]: it's a bug in @vue/component-compiler in-house postcss-clean wrapper.

sergcen commented 5 years ago

@huochunpeng it's should work with or without quotes, can you show more examples? here regexp which processing url

3cp commented 5 years ago

Thanks! I tested with postcss-url alone again, it's a false alarm, not postcss-url's fault. Something is not right in my postcss chain, I will dig deeper.