https://github.com/samccone/browserify-global-lookup-shim
https://github.com/samccone/browserify-global-lookup-shim
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samccone/browserify-global-lookup-shim
- Owner: samccone
- Created: 2015-02-10T03:42:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T03:55:51.000Z (over 11 years ago)
- Last Synced: 2025-01-28T10:49:04.704Z (over 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Browserify Global Lookup Shim
### Why?
Sometimes when you are distributing a standalone lib you want to exclude files from the build file. Instead you want them to be looked up on the window.
That is where the global lookup shim comes in handy.
### How to use
```bash
browserify src/index.js \
--standalone Module \
--external backbone \
--external underscore \
| ./node_modules/.bin/global-lookup-shim \
--global-shim underscore:_ \
--global-shim backbone:Backbone \
> dist/build.js
```