You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/livereload/readme.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,21 @@ Note: Enable RockDevTools only on development! RockDevTools is designed to never
14
14
15
15
## Configuration
16
16
17
+
### Disabling Livereload for Specific Pages
18
+
19
+
It might be the case that you want to disable LiveReload for specific pages (or the whole backend). This is how you can do it:
20
+
21
+
```php
22
+
// /site/ready.php
23
+
wire()->addHookAfter(
24
+
'LiveReload::addLiveReload',
25
+
function (HookEvent $event) {
26
+
$page = $event->arguments(0);
27
+
if ($page->template == 'admin') $event->return = false;
28
+
}
29
+
);
30
+
```
31
+
17
32
### Watched Files
18
33
19
34
RockDevTools uses Nette's File Finder to find files to watch. The default configuration at the moment of writing this documentation watches the following files:
Copy file name to clipboardExpand all lines: docs/rockcss/readme.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
RockCSS is a powerful CSS extension that brings fluid typography and responsive scaling to your ProcessWire projects with minimal effort. It introduces two groundbreaking functions - `grow()` and `shrink()` - that make responsive design intuitive and maintainable.
4
4
5
+
> Note: As of 2025-06-11 I recommend to use RockFrontend for this feature! See the docs about the grow feature there!
0 commit comments