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

Reduce size of minified build #12

Open
adamrenklint opened this issue May 8, 2015 · 0 comments
Open

Reduce size of minified build #12

adamrenklint opened this issue May 8, 2015 · 0 comments

Comments

@adamrenklint
Copy link
Owner

  • Declare var self = this at top of each method, as this will never get renamed
    • Can then remove a whole bunch of fn.bind(this) statements
  • Mangle all private/underscored properties and methods
    • To verify that underscored methods are never used outside of a class, use checkprivate
    • What about methods that are used by other parts of the system, but that are never meant to be consumed by outside developers? Could these also be mangled?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant