mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
497 B
TypeScript
22 lines
497 B
TypeScript
|
|
|
|
|
|
import * as gulp from 'gulp';
|
|
import * as minifyHtml from 'gulp-minify-html';
|
|
|
|
// This package has been deprecated in favor of gulp-htmlmin, which should be faster and more comprehensive.
|
|
|
|
minifyHtml();
|
|
minifyHtml({conditionals: true, loose: true});
|
|
|
|
gulp.task('minify-html', () => {
|
|
var opts: minifyHtml.Options = {
|
|
conditionals: true,
|
|
spare: true
|
|
};
|
|
|
|
return gulp.src('./static/html/*.html')
|
|
.pipe(minifyHtml(opts))
|
|
.pipe(gulp.dest('./dist/'));
|
|
});
|