Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Optimize/minimize bundle.js for production #79

Merged
merged 1 commit into from Jun 22, 2017

Conversation

pdehaan
Copy link
Collaborator

@pdehaan pdehaan commented Jun 9, 2017

Fixes #78

@pdehaan
Copy link
Collaborator Author

pdehaan commented Jun 9, 2017

$ npm start (146 KB):

$ ls -lash public/*.js
146K Jun  9 13:33 public/bundle.js
 22K Jun  9 08:33 public/webcrypto-shim.js

npm run dev (744 KB -- w/ inline sourcemap):

$ ls -lash public/*.js
774K Jun  9 13:38 public/bundle.js
 22K Jun  9 08:33 public/webcrypto-shim.js

@pdehaan
Copy link
Collaborator Author

pdehaan commented Jun 9, 2017

Disclaimer: This junk may or may not work. Browserify has never played nice w/ Uglify. That was supposed to be fixed via uglify-es, but I think npm5 is giving me semi-inconsistent results depending on how things get written to the package-lock.json.

🤷‍♀️

@pdehaan pdehaan reopened this Jun 22, 2017
@dannycoates dannycoates merged commit 84d1267 into mozilla:master Jun 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants