gulp-css-url-rebase
Rebase relative image URLs
This project has been forked to fix issues that were not resolved by its original author.
Install
npm install gulp-css-url-rebase --save-dev
Example
var gulp = ;var rebase = ; gulp;
What it tries to solve
Let's say you have this structure:
css
├ style.css
├ some
│ └ deep-path/
│ └ style.css
img
├ logo.png
├ cat.png
└ icons/
├ home.png
└ cancel.png
In css/style.css
you might have:
And in css/some/deep-path/style.css
:
When I minify everything, for example to be in ./style.css
in
production. I want this final file for the css above: