Make it work with "../dir/image.png" relative urls
Closed this issue · 0 comments
thatmarvin commented
Maybe pass in the path of the CSS file as a required param like so:
hashifyUrls(content, {
baseDir: 'public',
cssPath: 'public/css/build.css'
});
so that it can try to resolve url(../images/image.png)
relative to the CSS file.