postcss / postcss-url

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

add option to include fragment identifiers on inline data URIs #98

Closed clydin closed 7 years ago

clydin commented 7 years ago

A data URI containing a fragment identifier (hash) is only fully support in Firefox. Both webkit and blink based browsers do not support the usage. See here for additional details: https://bugs.chromium.org/p/chromium/issues/detail?id=123004

This adds an additional inline action option to control the addition of the fragment identifier. It is disabled by default due it its unsupported nature in most browsers.

Note: This is a breaking change.