-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minified file added to web3 package #3131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add some instructions in the README in how they would go about finding the file etc.. unless we already have it. Apart from that looks good to merge.
Sorry I'm late, but what's the rationale for this PR? To have a |
In #1041 there's a subset of users expecting a
At the moment it looks like people are git cloning web3 & running |
I suspect that does reports may come from a poor release process in the past. It sounds like some releases had no build artifact at all. This may not be a real issue now. |
@alcuadrado Mmmm. 1.2.1 installs without a dist - I think this could be a backport. |
It doesn't, but why should it have a I think I'd just close the issue and revert this change until someone else reports it and give more info, if that ever happens. Also, @nivida did some publishing work with rollup in the 2.x branch, which may conflict with this change (i.e. changing the expectations of what |
I found that the |
@alcuadrado Ok perhaps caution is reasonable here. As I read this change it only makes it possible to refer to a min via dist qualified path. We aren't testing webpack-ability per se but that might be a good idea. One item in defense of the topicality of this PR is this (from the GH insights tab for Web3. Looking for the min is the 5th most common thing people do. 🤷♂ |
This is really interesting! I've never used the GH traffic stats for this. Is it from the entire history? It'd be interesting to see if this keeps being true now, or if it mostly reflects how popular that issue was in the past. |
Good question - it looks like it's configurable out to 1 month, via a drop-down option on the "insights/pulse" tab. Just ran that search and found more recent discussion about what & why people want this in #2623 as well.... |
@alcuadrado Sorry - I'm wrong about it being configurable lol. No idea what the time span is. |
@alcuadrado The gulp build pipeline does create way smaller minified files then webpack is doing. This probably because it is excluding specific packages. Additionally, will CDN's use our minified version instead of bundling the minified files on their own. Another case is that some (also me) do like to run |
* minfied file added to web3 package for npm and cdn's * CHANGELOG.md updated
The minified file which is located in the root folder of the 1.x branch will now also be published on npm. The minified file got defined as the entry file for browsers in
packages/web3/package.json
. I've also added this file to the.gitignore
for not having it duplicated on GitHub. (We can probably later anyways remove the minified file from Git)Fixes #1041