From a1ce3f0e841f8d79aa8a89e1fa0fcfc85cfca1ff Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 20 Mar 2020 16:01:23 +0100 Subject: [PATCH] Terser strip comments --- tasks/js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/js.js b/tasks/js.js index ed2f3a61c..8ccbde045 100644 --- a/tasks/js.js +++ b/tasks/js.js @@ -64,7 +64,9 @@ const jsMin = () => .pipe(gulpif(config.source, sourcemaps.init({ loadMaps: true }))) .pipe(replace(/"rainloop\/v\/([^/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"')) .pipe(rename({ suffix: '.min' })) - .pipe(terser()) + .pipe(terser({ + output: {comments: false} + })) .pipe(eol('\n', true)) .pipe(gulpif(config.source, sourcemaps.write('./'))) .pipe(