fix custom build bug

This commit is contained in:
zymiboxpay 2015-03-18 16:26:17 +08:00
parent b5f73e2087
commit 53bc8e769f

View File

@ -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!