Merge pull request #1005 from zymiboxpay/master

fix custom build bug
This commit is contained in:
Nick Downie
2015-03-18 11:38:15 +00:00

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!