Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 558 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 558 Bytes

gulp-file64 Build Status

Convert and replace image-files within your DOM/HTML to base64-encoded data.

Example

gulpfile.js
var gulp = require('gulp');
var file64 = require('gulp-file64');

gulp.task('default', function () {
	gulp.src('index.html')
		.pipe(file64())
		.pipe(gulp.dest('path'));
});
index.html // Before...
<html>
	<head>
	</head>
	<body>
		<img src="sample.png" />
...

License

MIT © rakesh0r