Gulp secondary assets
|Added at||2017-01-01 13:01|
I have Gulp compiling all my JS and CSS into combined files and outputting to
This is all great but things like URL paths to linked files like CSS background images etc now no longer work.
As these linked assets are in my
then rewrite the paths to the new locations.
What I need is a way of find all the references in (mainly CSS) but could be JS too. Grab that file, check what filetype it is, place it in
How would you go about doing this? I realise I can use plugins like gulp-repace etc but not sure how to do the "take this thing that's been found, and go and get that file and do something with it" kind of thing.
An example would be very very helpful.