restoring standalone

This commit is contained in:
Nicholas Bollweg
2015-07-22 00:47:03 -04:00
parent 1a36ed9786
commit b148ec0850

View File

@@ -68,7 +68,8 @@ gulp.task('mermaid.slim',function() {
return gulp.src('src/mermaid.js') return gulp.src('src/mermaid.js')
.pipe(browserify({ .pipe(browserify({
external: ['d3'], external: ['d3'],
entry:'src/mermaid.js' entry:'src/mermaid.js',
standalone: 'mermaid'
})) }))
.pipe(rename('mermaid.slim.js')) .pipe(rename('mermaid.slim.js'))
// .on('prebundle', function(bundle){ // .on('prebundle', function(bundle){
@@ -92,7 +93,8 @@ gulp.task('mermaid',function() {
return gulp.src('src/mermaid.js') return gulp.src('src/mermaid.js')
.pipe(browserify({ .pipe(browserify({
entry:'src/mermaid.js' entry:'src/mermaid.js',
standalone: 'mermaid'
})) }))
.pipe(rename('mermaid.js')) .pipe(rename('mermaid.js'))
.pipe(gulp.dest('./dist/')) .pipe(gulp.dest('./dist/'))