-
Hi there, I'm the author of the parcel 1 plugin Watch Reload. I have been asked to make the plugin work with Parcel 2 – But I don't know where to start. I don't even really know which type of plugin (Resolver, Transformer, Bundler,...) it fits in best? The plugin watches the file system for changes of selected files not included in the parcel bundle (e.g.
Any suggestions are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I think this isn't really possible with a plugin. The dev & HMR server itself is a reporter plugin and other plugins cannot access its objects. |
Beta Was this translation helpful? Give feedback.
-
Solving this problem of reloading files not in the Parcel bundle was also discussed over in this issue. There's a suggestion there, but I'm not confident it works for many of the use cases mentioned here. The documentation for the File Watcher says "Parcel watches every file in your project root", but from my experience that doesn't seem to work for my WP theme PHP files. :( |
Beta Was this translation helpful? Give feedback.
-
I recommend to use BrowserSync together with Parcel as described here: hirasso/parcel-plugin-watch-reload#14 (comment) |
Beta Was this translation helpful? Give feedback.
I recommend to use BrowserSync together with Parcel as described here: hirasso/parcel-plugin-watch-reload#14 (comment)