Skip to content

Instantly share code, notes, and snippets.

@davidtheclark
Created June 8, 2015 22:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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