Automatic Reload (Updated)
Automatic Reload
To enable automatic reloading, perform the following steps:
-
Add the following lines to
app.js:Pear.updates(() => Pear.reload()) -
Run the app again using:
pear run --dev .Now Pear observes project files, and after they change, the app is automatically reloaded.
-
While keeping the
pear run --dev .command running, openindex.htmlin an editor. -
Change
<h1>desktop</h1>to<h1>Hello world</h1>.
The app should now show:

Live reload with hot-module reloading is possible by using the
pear.watchconfiguration and thepear.updatesAPI. The pear-hotmods convenience module can also be used.