-
-
Save samuelayo/f4cff3b0ed56f1e3b3274dbb7d84f80e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gulp = require('gulp'); | |
const uglify = require('gulp-uglify'); | |
gulp.task('compileHtml', function(done){ | |
gulp.src('src/*.html') | |
.pipe(gulp.dest('build')); | |
done(); | |
}); | |
gulp.task('minify', function(done){ | |
gulp.src('src/js/*.html') | |
.pipe(uglify()) | |
.pipe(gulp.dest('build/js')); | |
done(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment