File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ npm install --save-dev vite laravel-vite-plugin
1515You may also need to install additional Vite plugins for your project, such as the Vue or React plugins:
1616
1717``` shell
18- # Vue
1918npm install --save-dev @vitejs/plugin-vue
19+ ```
2020
21- # React
21+ ``` shell
2222npm install --save-dev @vitejs/plugin-react
2323```
2424
@@ -261,6 +261,22 @@ You may start the SSR server using `node`:
261261node storage/ssr/ssr.js
262262```
263263
264+ ### Wrapping Up
265+
266+ You should now be able to build your assets using the following command. This will also invoke the Vite server and Vite will watch for file changes:
267+
268+ ``` shell
269+ npm run dev
270+ ```
271+
272+ Alternatively, if you need to build files without watching or if you need to build them for production, you may use the following command:
273+
274+ ``` shell
275+ npm run build
276+ ```
277+
278+ For further info on how to use Vite, please check out [ the documentation] ( https://laravel.com/docs/vite ) .
279+
264280## Migrating from Vite to Laravel Mix
265281
266282### Install Laravel Mix
You can’t perform that action at this time.
0 commit comments