Skip to content

Commit e82dfd1

Browse files
authored
Merge pull request #26 from laravel/driesvints-patch-1
Update UPGRADE.md
2 parents 3ffa979 + de1c5bd commit e82dfd1

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

UPGRADE.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ npm install --save-dev vite laravel-vite-plugin
1515
You may also need to install additional Vite plugins for your project, such as the Vue or React plugins:
1616

1717
```shell
18-
# Vue
1918
npm install --save-dev @vitejs/plugin-vue
19+
```
2020

21-
# React
21+
```shell
2222
npm install --save-dev @vitejs/plugin-react
2323
```
2424

@@ -261,6 +261,22 @@ You may start the SSR server using `node`:
261261
node 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

0 commit comments

Comments
 (0)