A way to specify a minified build to use during `compile`. #57

Open
jdalton opened this Issue Aug 12, 2012 · 9 comments

2 participants

@jdalton

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?

@jdalton

Lo-Dash also has its own build process for custom builds. If I could tie that in as well that would rock.

@caolan
Owner
@jdalton

@caolan Cool. Is a workaround for this adding to the package.json

  "jam": {
    "main": "lodash.min.js"
  }

for now?

@caolan
Owner
@jdalton

@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
Owner
@jdalton

@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

@caolan
Owner

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.

@caolan
Owner

And I've dragged this issue way off-topic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment