包含构建生成的静态资源文件、JavaScript模块及服务器端依赖项。新增了favicon.ico、多张PNG图标图片、Vue相关模块文件、axios库文件、错误处理中间件及样式文件等。这些文件是项目构建后的输出结果,用于生产环境部署。同时更新了构建配置和版本信息。
29 lines
681 B
JavaScript
29 lines
681 B
JavaScript
"use strict";
|
|
|
|
import stream from "stream";
|
|
|
|
class ZlibHeaderTransformStream extends stream.Transform {
|
|
__transform(chunk, encoding, callback) {
|
|
this.push(chunk);
|
|
callback();
|
|
}
|
|
|
|
_transform(chunk, encoding, callback) {
|
|
if (chunk.length !== 0) {
|
|
this._transform = this.__transform;
|
|
|
|
// Add Default Compression headers if no zlib headers are present
|
|
if (chunk[0] !== 120) { // Hex: 78
|
|
const header = Buffer.alloc(2);
|
|
header[0] = 120; // Hex: 78
|
|
header[1] = 156; // Hex: 9C
|
|
this.push(header, encoding);
|
|
}
|
|
}
|
|
|
|
this.__transform(chunk, encoding, callback);
|
|
}
|
|
}
|
|
|
|
export default ZlibHeaderTransformStream;
|