From 5c24818b7e10831d7af613f55851493c702545c9 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 5 Mar 2020 13:49:08 +0100 Subject: setup babel --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index c690f3a..ec2191b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')) -- cgit v1.2.3