gulp-css-url-adjuster icon indicating copy to clipboard operation
gulp-css-url-adjuster copied to clipboard

Documentation is not full

Open Ann-Dederkal opened this issue 10 years ago • 2 comments

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 + '/');
    }
}))

Ann-Dederkal avatar May 19 '14 08:05 Ann-Dederkal

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!

trentearl avatar May 30 '14 00:05 trentearl

Would be nice to allow prepend and prependRelative to pass in a function just like append can?

u01jmg3 avatar Jul 16 '14 21:07 u01jmg3