mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
495 B
TypeScript
19 lines
495 B
TypeScript
import * as gulp from 'gulp';
|
|
import minifyHtml = require('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/'));
|
|
});
|