Skip to content

Instantly share code, notes, and snippets.

@davidtheclark
Created June 8, 2015 22:21
Show Gist options
  • Save davidtheclark/0e7a289f30fb4c9c71b7 to your computer and use it in GitHub Desktop.
Save davidtheclark/0e7a289f30fb4c9c71b7 to your computer and use it in GitHub Desktop.
var pathmodify = require('pathmodify')
var browserify = require('browserify')
browserify('./index.js')
.plugin(pathmodify(), {
mods: [
pathmodify.mod.dir('foo', './test/foo')
]
})
.bundle();
var bar = require('foo/bar');
bar();
// 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