mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
581 B
TypeScript
25 lines
581 B
TypeScript
import gulp = require('gulp');
|
|
import gzip = require('gulp-gzip');
|
|
|
|
gzip({ append: true });
|
|
|
|
gzip({ extension: 'zip' }); // note that the `.` should not be included in the extension
|
|
|
|
gzip({ preExtension: 'gz' }); // note that the `.` should not be included in the extension
|
|
|
|
gzip({ threshold: '1kb' });
|
|
|
|
gzip({ threshold: 1024 });
|
|
|
|
gzip({ threshold: true });
|
|
|
|
gzip({ gzipOptions: { level: 9 } });
|
|
|
|
gzip({ gzipOptions: { memLevel: 1 } });
|
|
|
|
gulp.task('compress', function() {
|
|
gulp.src('./dev/scripts/*.js')
|
|
.pipe(gzip())
|
|
.pipe(gulp.dest('./public/scripts'));
|
|
});
|