From: Zach Panzarino Date: Wed, 4 May 2016 22:54:10 +0000 (+0000) Subject: Fix build to remove all comments other than header X-Git-Tag: v2.1.1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2462%2Fhead;p=thirdparty%2FChart.js.git Fix build to remove all comments other than header --- 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));