This PR makes the following changes to the cache_busting plugin:
- Handle URLs with fragments. These are a common occurrence when working with SVG sprites.
- Add an option
applyToCSS(off by default) which makes the plugin process allurl()URLs encountered in CSS code. This allows web fonts to be cache busted, for instance. - Clear the hash cache when Lume updates the website during development. This is necessary since otherwise files won't get renamed at all and the browser may display a broken or stale version of the website.
This PR makes the following changes to the cache_busting plugin:
- Handle URLs with fragments. These are a common occurrence when working with SVG sprites.
- Add an option `applyToCSS` (off by default) which makes the plugin process all `url()` URLs encountered in CSS code. This allows web fonts to be cache busted, for instance.
- Clear the hash cache when Lume updates the website during development. This is necessary since otherwise files won't get renamed at all and the browser may display a broken or stale version of the website.