Browserify middleware allowing embedded ignore rules in source code
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json

README.md

node-ignorify

Not maintained anymore: use tagify instead

Browserify middleware that allows to specify ignore rules in source code

Installation

$ npm install ignorify

Usage

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

//@browserify-ignore
var foo = require('./dontrequireit');

Then, during the bundling specify the ignorify middleware :

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

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

Or :

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

Test

$ npm test