Answer the question
In order to leave comments, you need to log in
How to configure Gulp to automatically pull up images, fonts, etc. when concatenating and minimizing CSS?
I decided to simplify my life and build everything using Gulp and main-bower-files , incl. bower components.
Almost immediately I ran into a problem:
In CSS (LESS), in my particular case, relative urls (images, fonts) are written - for example, in Bootstrap.
And these pictures and fonts themselves are not copied, moreover, the paths to these files are not corrected (and there may be the same paths like ../images/images.png ).
I tried to do something with gulp-concat-css gulp-replace gulp-minify-css gulp-flatten gulp-rename but something didn't work out the way I wanted.
gulp-concat-css can rebaseUrls, but doesn't touch dependent files at all.
Is there any standard solution?
Which would:
Answer the question
In order to leave comments, you need to log in
At gulpjs.com/plugins, searching for 'rebase' returns several results, have you tried these plugins?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question