From 53bc8e769f275815237fe7cc0d4749adb09ec709 Mon Sep 17 00:00:00 2001 From: zymiboxpay Date: Wed, 18 Mar 2015 16:26:17 +0800 Subject: [PATCH] fix custom build bug --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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! -- 2.47.2