Anidetrix / rollup-plugin-styles

🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
242 stars 43 forks source link

Unresolved URL error when query string or hash in url #138

Closed adieu closed 3 years ago

adieu commented 3 years ago

We cannot handle url with query string or hash right now.

For example:

url("../assets/fonts/icons.svg#icons")

Unresolved URL error will be raised because we are trying to resolve the full url instead of the pathname part.

We can walk around this issue by setting a custom resolve func but the query string and hash parts will be removed in the final url.

matthew-dean commented 3 years ago

Same issue. I want to rewrite the URL but preserve the hash / querystring.

rchl commented 3 years ago

Likely resolved by https://github.com/Anidetrix/rollup-plugin-styles/pull/148.

Anidetrix commented 3 years ago

Should be fixed, reopen if needed