minerr

Minified Errors for AngularJS

problem

Cryptic error messages suck


WTF?

Error: 10 $digest iterations  reached. Aborting!    at Object.g.$digest    at Object.g.$apply    at Object.d [as invoke]

problem

Error messages don't minify well

Errors weigh ~1KB

in minified Angular

longer load times

frustrated users

you lose $$$

ADDING CODE MEANS

SOLUTION

Strip error messages from the build!

how minerr works

Custom JSCompiler pass strips errors

Build step generates docs

Docs are published on angularjs.org

Wait a minute

What happens in production?

 

production minerr

Logs a link to errors.angularjs.org

Encodes error message parameters

Website builds the right message

 

live demo

KEN SHEEDLO

github.com/ksheedlo
@kensheedlo
kensheedlo.com


Made with Slides.com