gulp-css-img-cachebust

Appends cachebust query parameters to image URLs within CSS files.

Usage no npm install needed!

<script type="module">
  import gulpCssImgCachebust from 'https://cdn.skypack.dev/gulp-css-img-cachebust';
</script>

README

gulp-css-img-cachebust

Appends cachebust query parameters to image URLs within CSS files.

Before:

// BEFORE: style.css
body {
  background: url('../img/darudesandstorm.jpg');
}

After:

// AFTER: style.css
body {
  background: url('../img/darudesandstorm.jpg?123456789');
}

Amazing.