git ssb

0+

Rômulo Alves / website



Tree: e799b8d3a0626995bfc7eff7cd3d911625f9ae34

Files: e799b8d3a0626995bfc7eff7cd3d911625f9ae34 / gulpfile.js

530 bytesRaw
1const gulp = require('gulp');
2const minifyHtml = require('gulp-minify-html');
3const cleanCSS = require('gulp-clean-css');
4const usemin = require('gulp-usemin');
5const rev = require('gulp-rev');
6
7gulp.task('copy', () =>
8 gulp.src('src/favicon.png')
9 .pipe(gulp.dest('dist/')));
10
11gulp.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