@@ -6,13 +6,13 @@ var gulp = require('gulp')
6
6
, uglify = require ( 'gulp-uglify' )
7
7
, browserify = require ( 'browserify' )
8
8
, source = require ( 'vinyl-source-stream' )
9
- , streamify = require ( 'gulp-streamify' )
10
9
, rename = require ( 'gulp-rename' )
11
10
, qunit = require ( 'gulp-qunit' )
12
11
, jshint = require ( 'gulp-jshint' )
13
12
, jscs = require ( 'gulp-jscs' )
14
13
, sync = require ( 'gulp-config-sync' )
15
14
, header = require ( 'gulp-header' )
15
+ , buffer = require ( 'vinyl-buffer' )
16
16
, pkg = require ( './package.json' )
17
17
, banner = "// svg-pan-zoom v<%= pkg.version %>" + "\n" + "// https://github.com/ariutta/svg-pan-zoom" + "\n"
18
18
;
@@ -28,10 +28,11 @@ gulp.task('browserify', function() {
28
28
this . emit ( "end" )
29
29
} )
30
30
. pipe ( source ( 'svg-pan-zoom.js' ) )
31
+ . pipe ( buffer ( ) )
31
32
. pipe ( header ( banner , { pkg : pkg } ) )
32
33
. pipe ( gulp . dest ( './dist/' ) )
33
- . pipe ( streamify ( rename ( 'svg-pan-zoom.min.js' ) ) )
34
- . pipe ( streamify ( uglify ( ) ) )
34
+ . pipe ( rename ( 'svg-pan-zoom.min.js' ) )
35
+ . pipe ( uglify ( ) )
35
36
. pipe ( header ( banner , { pkg : pkg } ) )
36
37
. pipe ( gulp . dest ( './dist/' ) )
37
38
} ) ;
0 commit comments