]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Amend build task with flag for AMD compatible builds (#2298) 2706/head
authorEric D. Lewis <elewis@mediamath.com>
Fri, 3 Jun 2016 21:19:29 +0000 (17:19 -0400)
committerEric D. Lewis <elewis@mediamath.com>
Sat, 4 Jun 2016 00:21:49 +0000 (20:21 -0400)
gulpfile.js

index d3a03ec8d9a2b9d9702c494ee8e83b7936a52a6c..56c7a2de365efe0402e344e4a1d3725964d62327 100644 (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'))