Skip to content

Commit e6c9f81

Browse files
committed
Updates vite config
1 parent 1f29424 commit e6c9f81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ To make your frontend build process works well with NativePHP, simply add the `n
4242
`vite.config.js`:
4343

4444
```js
45-
import { nativephpMobile } from './vendor/nativephp/mobile/resources/js/vite-plugin.js'; // [tl! focus]
45+
import { nativephpMobile, nativephpHotFile } from './vendor/nativephp/mobile/resources/js/vite-plugin.js'; // [tl! focus]
4646

4747
export default defineConfig({
4848
plugins: [
4949
laravel({
5050
input: ['resources/css/app.css', 'resources/js/app.js'],
5151
refresh: true,
52+
hotFile: nativephpHotFile(),
5253
}),
5354
tailwindcss(),
5455
nativephpMobile(), // [tl! focus]

0 commit comments

Comments
 (0)