Files: a191de07c293f1f4fafc8e1eaeecbe31fe74d4cc / gulpfile.js
548 bytesRaw
1 | const gulp = require('gulp') |
2 | const usemin = require('gulp-usemin') |
3 | const htmlmin = require('gulp-htmlmin') |
4 | const cleanCss = require('gulp-clean-css') |
5 | const rev = require('gulp-rev') |
6 | |
7 | |
8 | gulp.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 | |
17 | gulp.task('copy', () => |
18 | gulp.src(['./src/favicon.png']) |
19 | .pipe(gulp.dest('dist/'))) |
20 | |
21 | gulp.task('default', ['usemin', 'copy']) |
22 |
Built with git-ssb-web