在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):romeovs/gulp-zopfli开源软件地址(OpenSource Url):https://github.com/romeovs/gulp-zopfli开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-zopflia Zopfli plugin for gulp, based on node-zopfli. Install
OptionsYou can pass an options array to the zopfli object. These options are
passed on to The defaults options are: {
format: "gzip",
verbose: false,
verbose_more: false,
numiterations: 15,
blocksplitting: true,
blocksplittinglast: false,
blocksplittingmax: 15
}; Examplesvar gulp = require("gulp");
var zopfli = require("gulp-zopfli");
gulp.task("compress", function() {
gulp.src("./dev/scripts/*.js")
.pipe(zopfli())
.pipe(gulp.dest("./public/scripts"));
});
gulp.task("default", function() {
gulp.run("compress");
}); Since the plugin is based largely on it,
if you're already using gulp-gzip,
switching to var gzip = require("gulp-gzip"); by var gzip = require("gulp-zopfli"); CreditThis plugin was based largely on gulp-gzip,
I basically just replaced |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论