lodash npm distribution in browser

743 Views Asked by At

I'm using lodash in my tests, Not using webpack or browserify (don't need to).

I found that the default npm build differs from what's in bower. I could of course use bower version, but I'm curious if I can use npm's instead (it's already there for Gulp).

For bower I could just add this line to karma.conf:

bower_components/lodash/lodash.js

but in default npm distro there's no lodash.js. Of course I can always build whatever version I want using lodash cli. But maybe there's even easier way, say maybe I need to add more than just one file from node_modules/lodash?

1

There are 1 best solutions below

2
On BEST ANSWER

I think you are looking for node_modules/lodash/index.js