Skip to content

Instantly share code, notes, and snippets.

@dey-dey
Last active August 29, 2015 14:23
Show Gist options
  • Save dey-dey/10f707d6453882b2b05d to your computer and use it in GitHub Desktop.
Save dey-dey/10f707d6453882b2b05d to your computer and use it in GitHub Desktop.
Browserfiy: Require modules with aliases as shown
- js/apps/foo/index.js | require('lib/bar/beep'); require('lib/bar/beep/boop');
- js/lib/bar/beep/index.js
|----------------/boop/index.js
- package.json
"browser": {
"lib/*": "./js/lib/*"
}
@dey-dey
Copy link
Author

dey-dey commented Jun 18, 2015

gets: Error: Cannot find module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment