grunt:将图像转换为base64并插入到html中
用grunt
和grunt-preprocess
来准备我的html文件。
如何将图像标签( <img src="/some/image">
)replace为其base64
内联副本
刚使用grunt-base64
将image / icon转换成base64文件,在grunt-preprocess
使用<!-- @include my_base64_file -->
用grunt
和grunt-preprocess
来准备我的html文件。
如何将图像标签( <img src="/some/image">
)replace为其base64
内联副本
刚使用grunt-base64
将image / icon转换成base64文件,在grunt-preprocess
使用<!-- @include my_base64_file -->