gulp-video64

1.0.0 • Public • Published

gulp-video64

<< Forked from gulp-image64 >>

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

Example

gulpfile.js
var gulp = require('gulp');
var video64 = require('gulp-video64');
 
gulp.task('default', function () {
    gulp.src('index.html')
        .pipe(video64())
        .pipe(gulp.dest('path'));
});
index.html // Before...
<html>
    <head>
    </head>
    <body>
        <video >
            <source src="sample.mp4" >
 
...
path/index.html // ...after:
<html>
    <head>
    </head>
    <body>
        <video >
            <source src="data:video/mp4;base64,..." >
 
...

Package Sidebar

Install

npm i gulp-video64

Weekly Downloads

11

Version

1.0.0

License

MIT

Unpacked Size

105 kB

Total Files

9

Last publish

Collaborators

  • jose-nunez