Goal
Demonstrate how to configure browserify
with browserify-shim
to exclude jQuery
from the bundle and to make jQuery plugin (that supports CommonJS modules) work correctly, using global window.jQuery
object.
Step 1: create files
index.html
:
<script src="node_modules/jquery/dist/jquery.js"></script>