mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Amend build task with flag for AMD compatible builds (#2298)
This commit is contained in:
parent
829c2be2bc
commit
204021007f
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user