Skip to content

Commit

Permalink
Minified file added to web3 package (web3#3131)
Browse files Browse the repository at this point in the history
* minfied file added to web3 package for npm and cdn's

* CHANGELOG.md updated
  • Loading branch information
nivida authored and nachomazzara committed Jun 4, 2020
1 parent efcd504 commit 678ba2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ bower_components
.npm/
.vscode/
dist/
packages/web3/dist/
!./dist/web3.min.js
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Released with 1.0.0-beta.37 code base.
- getNetworkType method extended with Görli testnet (#3095)
- supportsSubscriptions method added to providers (#3116)
- Add `eth.getChainId` method (#3113)
- Minified file added to web3 package (#3131)
- The transaction confirmation workflow can now be configured (#3130)

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var replace = require('gulp-replace');
var exec = require('child_process').exec;

var DEST = path.join(__dirname, 'dist/');
var WEB3_PACKAGE_DEST = path.join(__dirname, 'packages/web3/dist');

var packages = [{
fileName: 'web3',
Expand Down Expand Up @@ -189,6 +190,7 @@ packages.forEach(function (pckg, i) {
.pipe(streamify(uglify(ugliyOptions)))
.on('error', function (err) { console.error(err); })
.pipe(rename(pckg.fileName + '.min.js'))
.pipe(gulp.dest(WEB3_PACKAGE_DEST))
.pipe(gulp.dest(DEST));
}));
});
Expand Down
1 change: 1 addition & 0 deletions packages/web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"node": ">=8.0.0"
},
"main": "src/index.js",
"browser": "dist/web3.min.js",
"bugs": {
"url": "https://github.com/ethereum/web3.js/issues"
},
Expand Down

0 comments on commit 678ba2d

Please sign in to comment.