css-reurl
Rewrite all css url property asynchronously.
works with async functions (node 7.6+)
usage
const fs = const base64Img = const cssReurl = fs
api
cssReurl(src, fn, done)
-
src<string|buffer>
css source -
fn(url)<function>
return the newurl, or a promise resolves the newurl -
done(newcss)<function>
rewrote callback with the new source
// asynchronously