git ssb

0+

Rômulo Alves / website



Tree: a191de07c293f1f4fafc8e1eaeecbe31fe74d4cc

Files: a191de07c293f1f4fafc8e1eaeecbe31fe74d4cc / 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