Browserify middleware allowing embedded alias rules in source code
JavaScript
Latest commit 1c0c601 Dec 2, 2012 @alexstrat Not maintained anymore
Permalink
Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json

README.md

node-aliasify

Not maintained anymore: use tagify instead

Browserify middleware allowing embedded alias rules in source code

Installation

$ npm install aliasify

Usage

Just throw the aliasify tag before the require statement you want to be ignored by browserfy.

//@browserify-alias shim-module
var module = require('module');

Then, during the bundling specify the aliasify middleware :

var browserify = require('browserify');
var aliasify = require('aliasify');

var bundle = browserify();
bundle.use(aliasify);
bundle.addEntry('./index.js');
bundle.bundle();

Or :

$ browserify entry.js -p 'aliasify' -o browserify.js

Test

$ npm test