I maintain Lo-Dash which has its own minified build that removes debug features and performs other tweaks to make a smaller minified file. Is there a way to specify a minified file in package.json to use for compile?
Lo-Dash also has its own build process for custom builds. If I could tie that in as well that would rock.
@caolan Cool. Is a workaround for this adding to the package.json
@caolan Ok thanks!
Yap, it's not perfect as the debug helpers for _.template and console.log(_.each) are nice but since using the dev build in production code is worse, the minified will do until the option is added to Jam.
@caolan Awesome!! Lo-Dash v0.5.0 will be bumped to stable (previously RC) in a day or so. I noticed that Jam has a dependency on Underscore.js, it would be rad if it was swapped out with Lo-Dash :D
All in good time :P -- more important than that is a way for people to easily swap underscore for lodash when using jam packages that depend on the former, I think. See some of my ideas for this on a recent jam mailing-list thread: https://groups.google.com/d/msg/jamjs/LJ2uGL63ens/M6-ygB5j614J
We might even get to a point where "jam install backbone" asks you whether you'd like to use underscore or lodash as the 'underscore' dependency.
And I've dragged this issue way off-topic :)