]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix build to remove all comments other than header 2462/head
authorZach Panzarino <zachary@panzarino.com>
Wed, 4 May 2016 22:54:10 +0000 (22:54 +0000)
committerZach Panzarino <zachary@panzarino.com>
Wed, 4 May 2016 22:54:10 +0000 (22:54 +0000)
gulpfile.js

index a2315eecbd89f956b86a5ccc3626eecf629c2baa..5b35797f4c1e0f4753ebdffc0f54d6da24e0e596 100644 (file)
@@ -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));