kadamwhite / mbtawesome

An MBTA subway status application with a good attitude
http://www.mbtawesome.com
MIT License
11 stars 0 forks source link

Migrate views to Ampersand-View #44

Closed kadamwhite closed 9 years ago

kadamwhite commented 9 years ago

lodash.chain was the only reason to continue using the monolithic build: Ampersand uses the modular npm packages. .chain is useful, and I used it heavily, but while https://github.com/lodash/lodash/issues/966 proposes a solution for rolling our own, it was more straightforward to use a combination of nested expressions and intermediate variables, depending on which was more readable. Final bundle size dropped significantly, for both the minified and non-minified variants.