Open fuddl opened 9 years ago
I managed to do this with a little hack.
the regex for this looks like that:
fileContent.replace(/url\(["']*([^)'"]+)["']*\)/g, function(matchedWord, imgUrl) { });
Would you consider opening a pull request for this, @fuddl?
for now, if you want this solved, use my fork:
npm install "git+https://git@github.com/lucianoratamero/grunt-inline.git#feature/css-url-replacing"
I'm opening a PR to fix this :)
@lucianoratamero I used your code, but didn't see your pull request in this repo. Did you submit it? I found your fix very useful.
It seems its not supposed to work to inline images also from css properties like:
Is that the case?