mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add definitions for gulp-htmlmin (https://github.com/jonschlinkert/gulp-htmlmin)
This commit is contained in:
@@ -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'))
|
||||
});
|
||||
Vendored
+18
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user