Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UPGRADE.md #26

Merged
merged 5 commits into from
Jun 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ npm install --save-dev vite laravel-vite-plugin
You may also need to install additional Vite plugins for your project, such as the Vue or React plugins:

```shell
# Vue
npm install --save-dev @vitejs/plugin-vue
```

# React
```shell
npm install --save-dev @vitejs/plugin-react
```

Expand Down Expand Up @@ -263,6 +263,22 @@ You may start the SSR server using `node`:
node storage/ssr/ssr.js
```

### Wrapping Up

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:

```shell
npm run dev
```
jessarcher marked this conversation as resolved.
Show resolved Hide resolved

Alternatively, if you need to build files without watching or if you need to build them for production, you may use the following command:

```shell
npm run build
```

For further info on how to use Vite, please check out [the documentation](https://laravel.com/docs/vite).

## Migrating from Vite to Laravel Mix

### Install Laravel Mix
Expand Down