Skip to content

Commit d4b0143

Browse files
committed
Replace gulp-uglify with gulp-terser as the former doesn't support ES6
1 parent 42482a4 commit d4b0143

File tree

3 files changed

+326
-94
lines changed

3 files changed

+326
-94
lines changed

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ngHtml2Js from 'gulp-ng-html2js';
77
import wrap from 'gulp-wrap';
88
import jshint from 'gulp-jshint';
99
import cache from 'gulp-cached';
10-
import uglify from 'gulp-uglify';
10+
import terser from 'gulp-terser';
1111
import minifyCSS from 'gulp-minify-css';
1212
import imagemin from 'gulp-imagemin';
1313
import pngcrush from 'imagemin-pngcrush';
@@ -137,7 +137,7 @@ gulp.task('dist-js', async function () {
137137

138138
gulp.src('./src/bower_components/requirejs/*.js')
139139
.pipe(concat('requirejs.min.js'))
140-
.pipe(uglify())
140+
.pipe(terser())
141141
.pipe(gulp.dest('./es-dist/js/'));
142142

143143
// copy ace, do not try to minify it :/
@@ -157,7 +157,7 @@ gulp.task('dist-js', async function () {
157157
// can't figure out better option of doing it :(
158158
rjs(rjsOpts)
159159
.pipe(wrap({ src: './config/ace_workaround.txt'}))
160-
.pipe(uglify())
160+
.pipe(terser())
161161
.pipe(gulp.dest('./es-dist/js/'));
162162
});
163163

0 commit comments

Comments
 (0)