walmartlabs / little-loader

A lightweight, IE8+ JavaScript loader
MIT License
370 stars 28 forks source link

Build minified library, add release lifecycle. #13

Closed ryan-roemer closed 8 years ago

ryan-roemer commented 8 years ago

Fixes #10

Note: I'm not planning on doing a UMD wrapper ( #9 ), instead giving documentation of how to build with "the usual tools" to have a laser-light focus on tightly inlining this.

We're down to 525 bytes with Uglify! Also note that although Closure Compiler goes smaller at 519 bytes, the 6 bytes difference doesn't make it worth the cost of having Java in the publishing pipeline.

... after this we should be ready for rollout to Atlas and beyond!

$ npm run build
$ wc -c dist/little-loader.min.js 
     525 dist/little-loader.min.js

/cc @exogen @baer @aisapatino @geekdave @Maciek416