git ssb

0+

Rômulo Alves / website



Tree: 4fcf08a3fc66b024a98afe8d9d36d5721bcee524

Files: 4fcf08a3fc66b024a98afe8d9d36d5721bcee524 / gulpfile.js

548 bytesRaw
1const gulp = require('gulp')
2const usemin = require('gulp-usemin')
3const htmlmin = require('gulp-htmlmin')
4const cleanCss = require('gulp-clean-css')
5const rev = require('gulp-rev')
6
7
8gulp.task('usemin', () =>
9 gulp.src('./src/index.html')
10 .pipe(usemin({
11 css: [ rev() ],
12 html: [ htmlmin({ collapseWhitespace: true }) ],
13 inlinecss: [ cleanCss(), 'concat' ]
14 }))
15 .pipe(gulp.dest('dist/')))
16
17gulp.task('copy', () =>
18 gulp.src(['./src/favicon.png'])
19 .pipe(gulp.dest('dist/')))
20
21gulp.task('default', ['usemin', 'copy'])
22

Built with git-ssb-web