Removed extraction of dagre-d3

Pending resolution of a issue with globals
This commit is contained in:
Björn Weström 2015-01-14 00:05:58 +01:00
parent fe437550fc
commit 8e45e7284b
1 changed files with 7 additions and 6 deletions

View File

@ -71,22 +71,23 @@ gulp.task('less', function () {
var browserify = require('gulp-browserify');
var slim_ext_libs = [
'dagre-d3',
'd3'
];
//var slim_ext_libs = [
// 'dagre-d3',
// 'd3'
//];
// Basic usage
gulp.task('slimDist', function() {
// Single entry point to browserify
return gulp.src('src/main.js')
.pipe(browserify({standalone: 'mermaid'}))
.pipe(browserify())
/*.pipe(browserify({standalone: 'mermaid'}))
.on('prebundle', function(bundle) {
// Keep these external for the slim version.
slim_ext_libs.forEach(function(lib) {
bundle.external(lib);
});
})
})*/
.pipe(rename('mermaid.slim.js'))
.pipe(gulp.dest('./dist/'))
.pipe(uglify())