We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 11989b2 + d924e9b commit d232754Copy full SHA for d232754
readme.markdown
@@ -196,6 +196,27 @@ 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 the bundle in a non-standard way without requiring.
202
+You can inform Watchify about these files by emiting a 'file' event.
203
204
+```
205
+module.exports = function(file) {
206
+ return through(
207
+ function(buf, enc, next) {
208
+ /*
209
+ manipulating file content
210
+ */
211
212
+ this.emit("file", absolutePathToFileThatHasToBeWatched);
213
214
+ next();
215
+ }
216
+ );
217
+};
218
219
220
# install
221
222
With [npm](https://npmjs.org) do:
0 commit comments