Created
November 12, 2014 21:15
-
-
Save bleathem/49aa70dc4f507e6bda74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package.json: | |
... | |
"browser": { | |
"angular": "./lib/angular/angular.js", | |
.... | |
}, | |
"browserify-shim": { | |
"angular": { | |
"exports": "angular" | |
}, | |
... | |
}, | |
"browserify": { | |
"transform": [] | |
}, | |
... | |
command-line: | |
$ ./node_modules/.bin/browserify -r angular:angular -o client/www/vendor.js | |
index.html: | |
... | |
<script src="vendor.js"></script> | |
... | |
browser console: | |
require('angular') | |
Object {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment