Distributing lodash npm in a browser

I use lodash in my tests, not using webpack or browser (not necessary).

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

For the gazebo, I can simply add this line to the karma.conf file:

bower_components/lodash/lodash.js

but by default npm distro is not lodash.js. Of course, I can always build any version I want using lodash cli. But maybe even easier, say, maybe I need to add more than one file from node_modules/lodash?

+4
source share
1 answer

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

+4
source

All Articles