Closed ghost closed 6 years ago
You can emit a file
event on the transform stream to inform watchify about any included files. The argument to the emit()
function should be the absolute path to the file.
this.push(result);
var self = this;
includedFiles.forEach(function (file) {
self.emit('file', file);
})
next();
e; we should update the readme to mention that
@goto-bus-stop LOVE YOU. Big thanks.
@goto-bus-stop what do you think?
Made simple transform to require-inline files. Basically this:
require(/*inline*/ "path/to/file.js");
paste file.js into line above instead of normal requiring.
But these files aren't watched by watchify. How can I make these files being watched too?
Here goes browserify transform I've made (includify):