-
Notifications
You must be signed in to change notification settings - Fork 1.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
We're browserifying the entire package.json #1842
Comments
due to |
so the other option is to change version.js every time we update the package.json, or possibly just when we build, bear in mind that we need to make sure its accurate in node and for custom builds. Of the various options, this one is
but on the other hand it does add some junk, we'd need to fix this with a very elegant/simple solution if we can think of one. |
All right, I think I came up with a decent solution. Just swap out version.js with module.exports = "2.2.0-alpha"; when browserifying. |
Reduces the gzipped file size from 34.3KB to 33.6KB. Not huge, but still useful given we claim 25KB on our web site, and we've ballooned since then. |
…gured out how to do the version thing
This feels like a waste, if we really only need the package.version.
E.g. scroll down to the bottom of this release: http://cdn.jsdelivr.net/pouchdb/2.1.2/pouchdb.min.js
The text was updated successfully, but these errors were encountered: