mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
Make changes to 'gulpfile.js' reccomended by @debris.
This commit is contained in:
parent
0267e85d41
commit
768d4bf28c
@ -25,7 +25,7 @@ var browserifyOptions = {
|
||||
debug: true,
|
||||
insert_global_vars: false, // jshint ignore:line
|
||||
detectGlobals: false,
|
||||
bundleExternal: false
|
||||
bundleExternal: true
|
||||
};
|
||||
|
||||
gulp.task('versionReplace', function(){
|
||||
@ -58,6 +58,7 @@ gulp.task('build', ['clean'], function () {
|
||||
return browserify(browserifyOptions)
|
||||
.require('./' + src + '.js', {expose: 'web3'})
|
||||
.add('./' + src + '.js')
|
||||
.ignore('crypto')
|
||||
.bundle()
|
||||
.pipe(exorcist(path.join( DEST, dst + '.js.map')))
|
||||
.pipe(source(dst + '.js'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user