mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix build to remove all comments other than header
This commit is contained in:
parent
d383e89222
commit
27b6791e73
12
gulpfile.js
12
gulpfile.js
@ -76,9 +76,9 @@ function buildTask() {
|
|||||||
.pipe(insert.prepend(header))
|
.pipe(insert.prepend(header))
|
||||||
.pipe(streamify(replace('{{ version }}', package.version)))
|
.pipe(streamify(replace('{{ version }}', package.version)))
|
||||||
.pipe(gulp.dest(outDir))
|
.pipe(gulp.dest(outDir))
|
||||||
.pipe(streamify(uglify({
|
.pipe(streamify(uglify()))
|
||||||
preserveComments: 'some'
|
.pipe(insert.prepend(header))
|
||||||
})))
|
.pipe(streamify(replace('{{ version }}', package.version)))
|
||||||
.pipe(streamify(concat('Chart.bundle.min.js')))
|
.pipe(streamify(concat('Chart.bundle.min.js')))
|
||||||
.pipe(gulp.dest(outDir));
|
.pipe(gulp.dest(outDir));
|
||||||
|
|
||||||
@ -89,9 +89,9 @@ function buildTask() {
|
|||||||
.pipe(insert.prepend(header))
|
.pipe(insert.prepend(header))
|
||||||
.pipe(streamify(replace('{{ version }}', package.version)))
|
.pipe(streamify(replace('{{ version }}', package.version)))
|
||||||
.pipe(gulp.dest(outDir))
|
.pipe(gulp.dest(outDir))
|
||||||
.pipe(streamify(uglify({
|
.pipe(streamify(uglify()))
|
||||||
preserveComments: 'some'
|
.pipe(insert.prepend(header))
|
||||||
})))
|
.pipe(streamify(replace('{{ version }}', package.version)))
|
||||||
.pipe(streamify(concat('Chart.min.js')))
|
.pipe(streamify(concat('Chart.min.js')))
|
||||||
.pipe(gulp.dest(outDir));
|
.pipe(gulp.dest(outDir));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user