-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I have code that look like this:
( ... )
var collapse = require('bundle-collapser');
( ... )
var b = browserify({
entries: admin_app_src,
cache: {},
packageCache: {},
plugin: [watchify]
}).transform('babelify', { "presets" : ["latest"] });
( ... )
function bundle() {
return b.bundle()
( ... )
.pipe( collapse() ) // <-- this does not work
( ... )
.pipe( source('build.js') )
( ... )
.pipe( buffer() )
( ... )
.pipe( uglify() )
( ... )
.pipe(gulp.dest('./assets/js'));
}
I can't seem to get bundle-collapser to work, no matter how I try to »implement« it – either as a plugin or in the pipeline.
Could you please provide an example of how to do this?
My problem seems to be how to pass the stream into the collapser ...
Also tried:
( ... )
}).transform('collapse', 'babelify', { "presets" : ["latest"] });
pixelass and binarweb
Metadata
Metadata
Assignees
Labels
No labels