grunt:将图像转换为base64并插入到html中

gruntgrunt-preprocess来准备我的html文件。

如何将图像标签( <img src="/some/image"> )replace为其base64内联副本

刚使用grunt-base64将image / icon转换成base64文件,在grunt-preprocess使用<!-- @include my_base64_file -->