Using browserify with npm jQuery and non-npm plugins
问题 I am using browserify to bundle front-end code. It's been great so far, but I've been having difficulty mixing npm and non npm packages. For example, using the npm version of jQuery with non CJS versions of jQuery plugins. My current solution is to use the browser key in package.json to point to jQuery's dist, and then use browserify-shim to add it as a dependency of the plugins. Is there a cleaner way to do this than what I currently have? Edit: I'm currently trying to use npm and package