|
|
@ -407,7 +407,9 @@ function bundleTask(opts) { |
|
|
|
// loads map from browserify file
|
|
|
|
// loads map from browserify file
|
|
|
|
.pipe(gulpif(debug, sourcemaps.init({ loadMaps: true }))) |
|
|
|
.pipe(gulpif(debug, sourcemaps.init({ loadMaps: true }))) |
|
|
|
// Minification
|
|
|
|
// Minification
|
|
|
|
.pipe(gulpif(opts.isBuild, uglify())) |
|
|
|
.pipe(gulpif(opts.isBuild, uglify({ |
|
|
|
|
|
|
|
mangle: { reserved: [ 'MetamaskInpageProvider' ] }, |
|
|
|
|
|
|
|
}))) |
|
|
|
// writes .map file
|
|
|
|
// writes .map file
|
|
|
|
.pipe(gulpif(debug, sourcemaps.write('./'))) |
|
|
|
.pipe(gulpif(debug, sourcemaps.write('./'))) |
|
|
|
// write completed bundles
|
|
|
|
// write completed bundles
|
|
|
|