Created
June 8, 2015 22:21
-
-
Save davidtheclark/0e7a289f30fb4c9c71b7 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
var pathmodify = require('pathmodify') | |
var browserify = require('browserify') | |
browserify('./index.js') | |
.plugin(pathmodify(), { | |
mods: [ | |
pathmodify.mod.dir('foo', './test/foo') | |
] | |
}) | |
.bundle(); |
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
var bar = require('foo/bar'); | |
bar(); |
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
// put this in subdir ./test/foo | |
module.exports = function() { | |
console.log('bar'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment