Amend build task with flag for AMD compatible builds (#2298)

This commit is contained in:
Eric D. Lewis 2016-06-03 17:19:29 -04:00
parent 829c2be2bc
commit 204021007f

View File

@ -69,7 +69,7 @@ gulp.task('default', ['build', 'watch']);
function buildTask() {
var bundled = browserify('./src/chart.js')
var bundled = browserify('./src/chart.js', { standalone: 'Chart' })
.bundle()
.pipe(source('Chart.bundle.js'))
.pipe(insert.prepend(header))
@ -81,7 +81,7 @@ function buildTask() {
.pipe(streamify(concat('Chart.bundle.min.js')))
.pipe(gulp.dest(outDir));
var nonBundled = browserify('./src/chart.js')
var nonBundled = browserify('./src/chart.js', { standalone: 'Chart' })
.ignore('moment')
.bundle()
.pipe(source('Chart.js'))