From 27b6791e7376420df7690699f856dbd2110f06bc Mon Sep 17 00:00:00 2001 From: Zach Panzarino Date: Wed, 4 May 2016 22:54:10 +0000 Subject: [PATCH] Fix build to remove all comments other than header --- gulpfile.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index a2315eecb..5b35797f4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -76,9 +76,9 @@ function buildTask() { .pipe(insert.prepend(header)) .pipe(streamify(replace('{{ version }}', package.version))) .pipe(gulp.dest(outDir)) - .pipe(streamify(uglify({ - preserveComments: 'some' - }))) + .pipe(streamify(uglify())) + .pipe(insert.prepend(header)) + .pipe(streamify(replace('{{ version }}', package.version))) .pipe(streamify(concat('Chart.bundle.min.js'))) .pipe(gulp.dest(outDir)); @@ -89,9 +89,9 @@ function buildTask() { .pipe(insert.prepend(header)) .pipe(streamify(replace('{{ version }}', package.version))) .pipe(gulp.dest(outDir)) - .pipe(streamify(uglify({ - preserveComments: 'some' - }))) + .pipe(streamify(uglify())) + .pipe(insert.prepend(header)) + .pipe(streamify(replace('{{ version }}', package.version))) .pipe(streamify(concat('Chart.min.js'))) .pipe(gulp.dest(outDir));