mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
566 B
TypeScript
20 lines
566 B
TypeScript
/// <reference path="../gulp/gulp.d.ts" />
|
|
/// <reference path="./gulp-changed.d.ts" />
|
|
/// <reference path="../gulp-minify-html/gulp-minify-html.d.ts" />
|
|
|
|
import * as gulp from "gulp";
|
|
import changed = require("gulp-changed");
|
|
import minifyHtml = require("gulp-minify-html");
|
|
|
|
// Without options
|
|
gulp.src("*.html")
|
|
.pipe(changed("build"))
|
|
.pipe(minifyHtml())
|
|
.pipe(gulp.dest("build"));
|
|
|
|
// With some options
|
|
gulp.src("*.html")
|
|
.pipe(changed("build", { hasChanged: changed.compareSha1Digest }))
|
|
.pipe(minifyHtml())
|
|
.pipe(gulp.dest("build"));
|