gulp-css-rebase-urls
Rebase relative image URLs
This is still a work in progress
Install
Install with npm
npm install gulp-css-rebase-urls --save-dev
Example
var gulp = ;var rebaseUrls = ; gulp;
What it tries to solve
Let's say you have this structure:
.
|-- css
| |-- some
| | `-- deep
| | |-- path
| | | `-- style.css
| | `-- style.css
| `-- style.css
`-- img
|-- a.jpg
|-- b.jpg
`-- deeper
`-- c.jpg
In css/style.css
you might have:
And in css/some/deep/path/style.css
you might have:
When I minify everything, for example to be in ./style.css
in
production. I want this final file for the css above:
Pull requests and use cases welcome.