benbria / aliasify

Rewrite require calls in browserify modules.
MIT License
204 stars 26 forks source link

Support for wildcards #12

Closed nmn closed 9 years ago

nmn commented 10 years ago

Browserify's official way to support local modules is to put them in the node_modules folder and add an exception in the .gitignore

A way to do wildcard aliases would be great:

'app/*' : './local_modules/*'
revolunet commented 9 years ago

Did you solve the problem ?

nmn commented 9 years ago

Nope. Still using the .gitignore solution that barely works.

jwalton commented 9 years ago

I am 99% sure you can already do this. If you do:

'app' : './local_modules'

then when you:

require('app/foo');

this should get rewritten to point to the local_modules version.

pmowrer commented 9 years ago

@jwalton I can confirm that your proposed solution works. Thanks!