This commit is contained in:
Tanguy Krotoff
2016-01-06 17:23:12 +01:00
parent 3051b93e44
commit b29d9f6340
2 changed files with 29 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
/// <reference path="gulp-htmlmin.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as htmlmin from 'gulp-htmlmin';
gulp.task('minify', function() {
return gulp.src('src/*.html')
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest('dist'))
});
+18
View File
@@ -0,0 +1,18 @@
// Type definitions for gulp-htmlmin v1.3.0
// Project: https://github.com/jonschlinkert/gulp-htmlmin
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
/// <reference path="../html-minifier/html-minifier.d.ts" />
declare module 'gulp-htmlmin' {
import * as HTMLMinifier from 'html-minifier';
namespace htmlmin {
}
function htmlmin(options?: HTMLMinifier.Options): NodeJS.ReadWriteStream;
export = htmlmin;
}