deps-patch
A plugin for both browserify and depsify, to allow to add dependencies not detected from code.
Example
In the following example,
entry.css
depends upon entry-deps.css
,
and extra.css
upon extra-deps.css
.
We can make entry.css
depends on extra.css
using this plugin.
var reduce = var path = var b = reducebb // add dependencies
The result would be something like:
/* from entry-deps.css */ /* from extra-deps.css */ /* from extra.css */ /* from entry.css */
Usage
The deps-patch.update
event should be fired whenever you want to add new dependencies.
b b
depsPatch
is an array of rows.
A row
is just an object with fields:
file
:String
. the file path to the dependentdeps
:Array
. an array of file path to modules the dependent should depend upon.