From: zymiboxpay Date: Wed, 18 Mar 2015 08:26:17 +0000 (+0800) Subject: fix custom build bug X-Git-Tag: v2.0-alpha~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1005%2Fhead;p=thirdparty%2FChart.js.git fix custom build bug --- diff --git a/gulpfile.js b/gulpfile.js index 0610135c9..29fa13bf0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,11 +24,11 @@ var srcDir = './src/'; gulp.task('build', function(){ // Default to all of the chart types, with Chart.Core first - var srcFiles = [new FileName('Core')], + var srcFiles = [FileName('Core')], isCustom = !!(util.env.types), outputDir = (isCustom) ? 'custom' : '.'; if (isCustom){ - util.env.types.split(',').forEach(function(type){ return srcFiles.push(new FileName(type));}); + util.env.types.split(',').forEach(function(type){ return srcFiles.push(FileName(type));}); } else{ // Seems gulp-concat remove duplicates - nice!