You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- browserify instance emits ‘factor.pipeline’ event when the pipeline
is created
- pipeline uses labeled-stream-splicer and has ‘pack’ and ‘wrap’ stages
Copy file name to clipboardExpand all lines: readme.markdown
+11
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,17 @@ default).
179
179
180
180
The entry file name is available as `stream.file`.
181
181
182
+
## b.on('factor.pipeline', function (file, pipeline) {})
183
+
184
+
Emits the full path to the entry file (`file`) and a [labeled-stream-splicer](https://npmjs.org/package/labeled-stream-splicer) (`pipeline`) for each entry file with these labels:
You can call `pipeline.get` with a label name to get a handle on a stream pipeline that you can `push()`, `unshift()`, or `splice()` to insert your own transform streams.
190
+
191
+
Event handlers must be attached *before* calling `b.plugin`.
0 commit comments