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

Optimize/minimize bundle.js for production#79

Merged
dannycoates merged 1 commit intomozilla:masterfrom
pdehaan:issue-78
Jun 22, 2017
Merged

Optimize/minimize bundle.js for production#79
dannycoates merged 1 commit intomozilla:masterfrom
pdehaan:issue-78

Conversation

@pdehaan
Copy link
Copy Markdown
Contributor

@pdehaan pdehaan commented Jun 9, 2017

Fixes #78

@pdehaan
Copy link
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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.

2 participants