Skip to content

Instantly share code, notes, and snippets.

@samuelayo
Created February 4, 2019 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelayo/f4cff3b0ed56f1e3b3274dbb7d84f80e to your computer and use it in GitHub Desktop.
Save samuelayo/f4cff3b0ed56f1e3b3274dbb7d84f80e to your computer and use it in GitHub Desktop.
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