Adds alternative html minification for #54
parent
8f239d6aba
commit
ab091b1a93
|
@ -22,6 +22,7 @@ var gulp = require('gulp');
|
|||
var $ = require('gulp-load-plugins')();
|
||||
var rimraf = require('rimraf');
|
||||
var browserSync = require('browser-sync');
|
||||
var minifyHTML = require('gulp-minify-html');
|
||||
var pagespeed = require('psi');
|
||||
var reload = browserSync.reload;
|
||||
|
||||
|
@ -53,6 +54,7 @@ gulp.task('html', ['styles'], function () {
|
|||
.pipe($.if('*.css', $.uncss({ html: ['app/index.html'] })))
|
||||
.pipe($.useref.restore())
|
||||
.pipe($.useref())
|
||||
.pipe(minifyHTML({comments:true,spare:true}))
|
||||
.pipe(gulp.dest('dist'))
|
||||
.pipe($.size({title: 'html'}));
|
||||
});
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"gulp-uglify": "^0.3.0",
|
||||
"gulp-useref": "^0.4.3",
|
||||
"gulp-uncss": "^0.4.4",
|
||||
"gulp-minify-html": "^0.1.3",
|
||||
"jshint-stylish": "^0.2.0",
|
||||
"opn": "^0.1.1",
|
||||
"psi": "0.0.3",
|
||||
|
|
Loading…
Reference in New Issue