From 204021007f1b6f34ee89186d98f33b69283ec215 Mon Sep 17 00:00:00 2001 From: "Eric D. Lewis" Date: Fri, 3 Jun 2016 17:19:29 -0400 Subject: [PATCH] Amend build task with flag for AMD compatible builds (#2298) --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d3a03ec8d..56c7a2de3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')) -- 2.47.2