Minify HTML
This commit is contained in:
parent
8bf421adba
commit
508e407faf
5 changed files with 12 additions and 10 deletions
|
@ -81,6 +81,12 @@ gulp.task('clean', function () {
|
|||
del.sync('./output_*/assets/fonts/*');
|
||||
});
|
||||
|
||||
gulp.task('minify-prod-html', function() {
|
||||
gulp.src('output_prod/**/*.html')
|
||||
.pipe(plugins.htmlmin({ collapseWhitespace: true }))
|
||||
.pipe(gulp.dest('output_prod'));
|
||||
});
|
||||
|
||||
gulp.task('build', ['clean', 'styles', 'scripts', 'fonts']);
|
||||
|
||||
gulp.task('default', ['build', 'watch']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue