1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-10-26 03:36:17 +01:00

setup babel

This commit is contained in:
Hakim El Hattab
2020-03-05 13:49:08 +01:00
parent 5dfaa32418
commit 5c24818b7e
3 changed files with 1126 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
const gulp = require('gulp')
const zip = require('gulp-zip')
const sass = require('gulp-sass')
const babel = require('gulp-babel')
const qunit = require('gulp-qunit')
const header = require('gulp-header')
const eslint = require('gulp-eslint')
@@ -24,6 +25,7 @@ const license = `/*!
*/\n`
gulp.task('js', () => gulp.src(['./js/reveal.js'])
.pipe(babel({ presets: ['@babel/preset-env'] }))
.pipe(uglify())
.pipe(header(license, {pkg: pkg}))
.pipe(rename('reveal.min.js'))