Files: e799b8d3a0626995bfc7eff7cd3d911625f9ae34 / gulpfile.js
530 bytesRaw
1 | const gulp = require('gulp'); |
2 | const minifyHtml = require('gulp-minify-html'); |
3 | const cleanCSS = require('gulp-clean-css'); |
4 | const usemin = require('gulp-usemin'); |
5 | const rev = require('gulp-rev'); |
6 | |
7 | gulp.task('copy', () => |
8 | gulp.src('src/favicon.png') |
9 | .pipe(gulp.dest('dist/'))); |
10 | |
11 | gulp.task('build', ['copy'], function () { |
12 | return gulp.src('src/index.html') |
13 | .pipe(usemin({ |
14 | css: [ rev() ], |
15 | html: [ minifyHtml({ empty: true }) ], |
16 | inlinecss: [ cleanCSS, 'concat' ] |
17 | })) |
18 | .pipe(gulp.dest('dist/')); |
19 | }); |
20 |
Built with git-ssb-web