在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):247even/gulp-img64开源软件地址(OpenSource Url):https://github.com/247even/gulp-img64开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-img64Convert and replace image-files within your DOM/HTML to base64-encoded data. Examplegulpfile.jsvar gulp = require('gulp');
var img64 = require('gulp-img64');
gulp.task('default', function () {
gulp.src('index.html')
.pipe(img64())
.pipe(gulp.dest('path'));
}); index.html // Before...<html>
<head>
</head>
<body>
<img src="sample.png" />
... path/index.html // ...after:<html>
<head>
</head>
<body>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAACksUlEQVR42ux9B5glV3F195ud2dkkaSXxE22SDTYigwwWSUQHsAgCEyTAgBAgE0wGA79JwiKDAIlkhEgiRxFFNEZkkxwA22AMTvwobZiZnfDef6r7Vr/Tp+u+3emZ1Upi7369/ea97hvr1q06VbduWRxMl+c0U5blDUaj0VVx/z+43xDfTeHahuvauEa4ro7rcHnPvh/inVH1x2iEj+Ug3e3vIt3n8PO/2Zf4/At8vtCex5//gL8vwMef4fO/4PPuA90RB1O/VB7oChxMe0+YZNfEzSb6DXC/Lv6+Hj7/Bj4fgmuYrpXBYDC0lN4Z4plhPXerO2c5SpO8YQB4t8CrFQOwy7JJE3+AR/DzwDKo/vbv7MIjU/h7Hvd/w/3n+O7HuP4Zf/8T/v6XA913B9PkdJABXMYSJs51MHGOxv2WuB+F+/Xx9WxRT/JlfLeCu18jm/Q2T1dWVmwyj1IetpSPbBLjd7vb30Wa5NUKP5iaKkb+eTBoyk/vuBRQOj+xKz1XljXnKIcrK/adcR27GyMw6cMe2mCf7XV8/iE+/wD37+Hvr+PzDw90Hx9M43SQARz4dGtcNuFvgclxi6IW11fw91JRT/JlXNVqPjU1hXk3wufCJ3u1knvyVd6/c3Gek6/u/Lyv+vWkR6Er9e8bNmyonmWmwA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