mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-21 19:34:19 +01:00
cross: bump dependency versions
This commit is contained in:
@@ -3,7 +3,7 @@ const clean = require('gulp-clean');
|
||||
const gzip = require('gulp-gzip');
|
||||
const inlineSource = require('gulp-inline-source');
|
||||
const rename = require("gulp-rename");
|
||||
const through = require('through2');
|
||||
const through2 = require('through2');
|
||||
|
||||
const genHeader = (size, buf, len) => {
|
||||
let idx = 0;
|
||||
@@ -40,12 +40,12 @@ task('clean', () => {
|
||||
task('default', () => {
|
||||
return src('dist/index.html')
|
||||
.pipe(inlineSource())
|
||||
.pipe(through.obj((file, enc, cb) => {
|
||||
.pipe(through2.obj((file, enc, cb) => {
|
||||
fileSize = file.contents.length;
|
||||
return cb(null, file);
|
||||
}))
|
||||
.pipe(gzip())
|
||||
.pipe(through.obj((file, enc, cb) => {
|
||||
.pipe(through2.obj((file, enc, cb) => {
|
||||
const buf = file.contents;
|
||||
file.contents = Buffer.from(genHeader(fileSize, buf, buf.length));
|
||||
return cb(null, file);
|
||||
|
||||
Reference in New Issue
Block a user