mariocasciaro / gulp-concat-css

Concatenates css files, bubbling up import statements (as per the standard), and optionally rebasing urls and inlining local import statements.
MIT License
78 stars 19 forks source link

rebase url changes when feeding an array of src, based on the path of first src #30

Open kzko opened 8 years ago

kzko commented 8 years ago

when feeding an array of source return gulp.src([ './www/folder1/mycss.css', './lib/bower_components/ionicons/css/ionicons.min.css' ] ).pipe(concatCss("style.min.css"))

the rebase logic is based only on the first array element.

so for example, if we change the first src to '../mycss.css'

within ionicons.min.css, the path changes from: url("../../lib/bower_components/ionicons/fonts/ionicons.eot?v=1.5.2"); to: url("../fonts/ionicons.eot?v=1.5.2");

margusbirk commented 8 years ago

I've noticed this too. Could/Should this be configurable via the options?

ychongsaytc commented 8 years ago

+1 same problems

mencargo commented 8 years ago

this was the exact problem that I was hoping for concat-css to solve.