Guest User

Untitled

a guest
Sep 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // Import modules
  2. const gulp = require('gulp');
  3. const htmlmin = require('gulp-htmlmin');
  4.  
  5. // Gulp task to minify HTML files
  6. gulp.task('html', () => {
  7. gulp.src(['./**/*.html', '!./node_modules/**'])
  8. .pipe(htmlmin({
  9. collapseWhitespace: true,
  10. minifyCSS: true,
  11. minifyJS: true,
  12. removeComments: true
  13. }))
  14. .pipe(gulp.dest('./dist'));
  15. });
Add Comment
Please, Sign In to add comment