From 0b506263482a17cd76c0b5e156a3640c6a04a3db Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 27 Feb 2019 02:09:09 +0100 Subject: [PATCH] Added options for terser uglification Signed-off-by: Jim Martens --- gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 7307512..657ad8f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -70,7 +70,10 @@ gulp.task("build:scripts:global", function () { presets: ["@babel/env"] })) .pipe(concat("main.js")) - .pipe(terser()) + .pipe(terser({ + keep_fnames: true, + mangle: false + })) .pipe(gulp.dest(paths.jekyllJsFiles)) .pipe(gulp.dest(paths.siteJsFiles)) .on("error", gutil.log);