Is there any way to define a condition to only convert urls from a specific directory?
Actually I'm using grunt-data-uri plugin from Grunt that allow to define this condition, but I'm starting to use Gulp tasks.
The Grunt plugin is configured in this way:
The plugin converts only to base64 the images that are loaded from public/images/inline-data/*.
If the image is loaded from a directory different from this, the plugin doesn't replace the url(image) to base64.
Is there any way to define a condition to only convert urls from a specific directory? Actually I'm using grunt-data-uri plugin from Grunt that allow to define this condition, but I'm starting to use Gulp tasks. The Grunt plugin is configured in this way:
The plugin converts only to base64 the images that are loaded from
public/images/inline-data/*
. If the image is loaded from a directory different from this, the plugin doesn't replace theurl(image)
to base64.