Skip to content

Commit d1402f8

Browse files
Updates browser docs (#218)
* Updates browser docs * Improve code styling and update mobile docs Enhanced code block styling in app.css for better readability, including dark mode improvements. Updated mobile documentation to clarify hot reloading usage and implementation, and added GD PHP extension requirements for app icon and splash screen generation. * Updates docs for hot reload
1 parent 02a2509 commit d1402f8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

resources/views/docs/mobile/1/getting-started/development.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,38 @@ changes to any files in your Laravel app, the web view will be reloaded and your
111111

112112
The proper way to implement this is to first `run` your app on your device/emulator, then start HMR with `npm run dev` then in a separate terminal run the `native:watch` command. This will reload any Blade/Livewire files as well as any recompiled assets (css/js etc).
113113

114+
<aside class="relative z-0 mt-5 overflow-hidden rounded-2xl bg-pink-50 px-5 ring-1 ring-black/5 dark:bg-pink-600/10">
115+
116+
#### Note
117+
118+
119+
120+
```php
121+
'hot_reload' => [
122+
'watch_paths' => [
123+
'app',
124+
'routes',
125+
'config',
126+
'database',
127+
// Make sure "public" is listed in your config [tl! highlight:1]
128+
'public',
129+
],
130+
]
131+
```
132+
```js
133+
// And update your vite.config.ts
134+
server: {
135+
port: 5173,
136+
cors: true,
137+
hmr: {
138+
host: '127.0.0.1',
139+
},
140+
},
141+
```
142+
143+
</aside>
144+
145+
114146
## Releasing
115147

116148
To prepare your app for release, you should set the version number to a new version number that you have not used

0 commit comments

Comments
 (0)