mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
457 B
TypeScript
20 lines
457 B
TypeScript
/// <reference path="gulp-minify-html.d.ts" />
|
|
/// <reference path="../gulp/gulp.d.ts" />
|
|
|
|
import gulp = require('gulp');
|
|
import minifyHtml = require('gulp-minify-html');
|
|
|
|
minifyHtml();
|
|
minifyHtml({conditionals: true, loose: true});
|
|
|
|
gulp.task('minify-html', () => {
|
|
var opts = {
|
|
conditionals: true,
|
|
spare: true
|
|
};
|
|
|
|
return gulp.src('./static/html/*.html')
|
|
.pipe(minifyHtml(opts))
|
|
.pipe(gulp.dest('./dist/'));
|
|
});
|