File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,18 @@ npm i -D vite-plugin-run
26
26
Then, update your application's ` vite.config.js ` file to watch for changes to your application's routes and controllers:
27
27
28
28
``` ts
29
- import { run } from " vite-plugin-run " ;
29
+ import { wayfinder } from " @laravel/ vite-plugin-wayfinder " ;
30
30
31
31
export default defineConfig ({
32
32
plugins: [
33
+ wayfinder (),
33
34
// ...
34
- run ([
35
- {
36
- name: " wayfinder" ,
37
- run: [" php" , " artisan" , " wayfinder:generate" ],
38
- pattern: [" routes/**/*.php" , " app/**/Http/**/*.php" ],
39
- },
40
- ]),
41
35
],
42
36
});
43
37
```
44
38
39
+ [ Wayfinder vite plugin documentation] ( https://github.com/laravel/vite-plugin-wayfinder ) .
40
+
45
41
## Generating TypeScript Definitions
46
42
47
43
The ` wayfinder:generate ` command can be used to generate TypeScript definitions for your routes and controller methods:
You can’t perform that action at this time.
0 commit comments