We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11989b2 commit 9ea8a65Copy full SHA for 9ea8a65
readme.markdown
@@ -196,6 +196,25 @@ X bytes written (Y seconds)
196
197
with the number of bytes in the bundle X and the time in seconds Y.
198
199
+# working with browserify transforms
200
+
201
+If your custom transform for browserify adds new files to bundle in a non-standard way without requiring.
202
+You can inform Watchify about these files by emiting 'file' event.
203
204
+module.exports = function(file) {
205
+ return through(
206
+ function(buf, enc, next) {
207
+ /*
208
+ manipulating file content
209
+ */
210
211
+ this.emit("file", absolutePathToFileThatHasToBeWatched);
212
213
+ next();
214
+ }
215
+ );
216
+};
217
218
# install
219
220
With [npm](https://npmjs.org) do:
0 commit comments