gulp-css-url-adjuster
gulp-css-url-adjuster copied to clipboard
Documentation is not full
Thank you for your module. It is what I needed. But it was a bit difficult to use it because of pure documentation. It would be great if you add description of prepend and append properties.
E.g. function can be passed as append property:
.pipe(urlAdjuster({
append: function(url){
return url.replace(/\/images\//, '/images/' + slide.id + '/');
}
}))
Yes sorry, the function part was added in haphazardly and is sloppy, I really needed it though. I may refactor it to make more sense, but that might break others usage. Feel free to submit a PR until then.
I'll try and add in some documentation soon. Thanks!
Would be nice to allow prepend
and prependRelative
to pass in a function just like append
can?