Created
June 8, 2015 22:21
-
-
Save davidtheclark/0e7a289f30fb4c9c71b7 to your computer and use it in GitHub Desktop.
Revisions
-
davidtheclark created this gist
Jun 8, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ var pathmodify = require('pathmodify') var browserify = require('browserify') browserify('./index.js') .plugin(pathmodify(), { mods: [ pathmodify.mod.dir('foo', './test/foo') ] }) .bundle(); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ var bar = require('foo/bar'); bar(); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ // put this in subdir ./test/foo module.exports = function() { console.log('bar'); }