# gulp-cli-html **Repository Path**: miss-tree/gulp-cli-html ## Basic Information - **Project Name**: gulp-cli-html - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-05 - **Last Updated**: 2021-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### gulp-cli-html 主要处理HTML文件的js文件,减小HTML项目文件大小 将需要压缩的js文件放到 src 下面,会将所有js压缩到dist目录下大文件会多压缩出一个 .gz 包 对于 .gz 包的使用: 要在服务器Nginx配置 gzip on; gzip_static on; gzip_min_length 1000; gzip_comp_level 6; // 针对服务器来设置参数 gzip_buffers 4 8k; gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss image/jpeg image/png image/g; gzip_vary on; 这样网络请求有优先请求 .gz 文件,浏览器默认支持 .gz 文件解析 ### cmd gulp gzip ### gitee https://gitee.com/miss-tree/gulp-cli-html.git